> ## Documentation Index
> Fetch the complete documentation index at: https://developer.hellgate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Update interceptor

> Updates an interceptor's field mapping or response behavior.



## OpenAPI

````yaml /products/specter/openapi.yaml patch /api/admin/interceptors/{id}
openapi: 3.1.0
info:
  contact:
    email: hello@starfish.team
    name: Starfish GmbH & Co. KG
    url: https://hellgate.io/cpa/specter
  description: Composable decision engine and fraud prevention service.
  license:
    name: Hellgate API Terms
    url: https://hellgate.io/terms-and-conditions
  title: Specter API
  version: '1.0'
servers:
  - description: Managed instance of Specter
    url: https://{instance}.{env}.on-hellgate.cloud
    variables:
      instance:
        default: my-instance
        description: Your unique instance slug, provided during onboarding.
      env:
        default: eu1
        description: Deployment environment (currently eu1).
security: []
tags:
  - description: Evaluate transactions and retrieve decision results.
    name: Decisions
  - description: Close decisions that were flagged for manual review.
    name: Resolutions
  - description: Report payment lifecycle events for a prior decision.
    name: Lifecycle Events
  - description: Manage rulesets and their activation lifecycle.
    name: Rulesets
  - description: Configure interceptors and intercept live payment requests.
    name: Interceptors
  - description: Subscribe to decision and event notifications.
    name: Webhooks
  - description: Manage blocked field values.
    name: Blacklist
paths:
  /api/admin/interceptors/{id}:
    patch:
      tags:
        - Interceptors
      summary: Update interceptor
      description: Updates an interceptor's field mapping or response behavior.
      operationId: admin_interceptors_update
      parameters:
        - description: ''
          in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateInterceptorRequest'
        description: Update attributes
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InterceptorResponse'
          description: Updated interceptor
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrors'
          description: Validation errors
      callbacks: {}
      security:
        - bearerAuth: []
components:
  schemas:
    UpdateInterceptorRequest:
      properties:
        active:
          type: boolean
        context:
          type: string
        description:
          type: string
        destination:
          properties:
            timeout_ms:
              type: integer
            url:
              type: string
          type: object
        field_mapping:
          items:
            type: object
          type: array
        responses:
          type: object
      title: UpdateInterceptorRequest
      type: object
    InterceptorResponse:
      properties:
        id:
          format: uuid
          type: string
        context:
          type: string
        description:
          type:
            - string
            - 'null'
        destination:
          properties:
            timeout_ms:
              example: 30000
              type: integer
            url:
              example: https://checkout.example.com/payments
              type: string
          type: object
        discovered_keys:
          description: >-
            Typed JSONPath keys observed in intercepted requests. Used for field
            mapping discovery.
          items:
            properties:
              key:
                description: JSONPath key
                type: string
              type:
                description: >-
                  Observed value type (string, integer, number, boolean, array,
                  unknown)
                type: string
            type: object
          type: array
        field_mapping:
          items:
            type: object
          type: array
        inserted_at:
          format: date-time
          type: string
        ref:
          description: >-
            Stable identifier shared across all versions of this interceptor.
            Used as the path parameter for the runtime execute endpoint.
          type:
            - string
            - 'null'
        responses:
          type:
            - object
            - 'null'
        status:
          enum:
            - DRAFT
            - ACTIVE
            - INACTIVE
          type: string
        updated_at:
          format: date-time
          type: string
        version:
          type: integer
      title: InterceptorResponse
      type: object
    Error:
      description: Generic error response with classifier, code, and message
      example:
        classifier: NOT_FOUND
        code: 404
        message: The requested resource does not exist
      properties:
        classifier:
          example: NOT_FOUND
          type: string
        code:
          example: 404
          type: integer
        message:
          example: The requested resource does not exist
          type: string
      required:
        - classifier
        - code
        - message
      title: Error
      type: object
    ValidationErrors:
      description: Response shape for request validation failures
      example:
        classifier: VALIDATION_ERROR
        code: 422
        validation_errors:
          - message: must be a positive integer
            path: limit
      properties:
        classifier:
          example: VALIDATION_ERROR
          type: string
        code:
          example: 422
          type: integer
        validation_errors:
          items:
            properties:
              message:
                example: must be a positive integer
                type: string
              path:
                example: limit
                type: string
            type: object
          type: array
      required:
        - classifier
        - code
        - validation_errors
      title: ValidationErrors
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      description: >-
        HS256-signed JWT bearer token, obtained via the OAuth2
        client-credentials grant (see Authentication).
      scheme: bearer
      type: http

````