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

# Save Reference Matches

> Save reference matches; later version bumps reuse them.



## OpenAPI

````yaml https://platform.tracecat.com/api/openapi.json put /admin/managed-resources/targets/{target_id}/references
openapi: 3.1.0
info:
  title: Tracecat API
  summary: Tracecat API
  description: The open source AI automation platform for security teams and agents.
  termsOfService: >-
    https://docs.google.com/document/d/e/2PACX-1vQvDe3SoVAPoQc51MgfGCP71IqFYX_rMVEde8zC4qmBCec5f8PLKQRdxa6tsUABT8gWAR9J-EVs2CrQ/pub
  contact:
    name: Tracecat Founders
    email: founders@tracecat.com
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
  version: '1'
servers:
  - url: /api
security: []
tags:
  - name: public
    description: Public facing endpoints
  - name: workflows
    description: Workflow management
  - name: actions
    description: Action management
  - name: triggers
    description: Workflow triggers
  - name: secrets
    description: Secret management
  - name: variables
    description: Workspace variable management
paths:
  /admin/managed-resources/targets/{target_id}/references:
    put:
      tags:
        - admin
        - admin:managed-resources
      summary: Save Reference Matches
      description: Save reference matches; later version bumps reuse them.
      operationId: admin-save_reference_matches
      parameters:
        - name: target_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Target Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ManagedReferenceMatchesUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ManagedReferenceMatchItem'
                title: Response Admin-Save Reference Matches
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyCookie: []
components:
  schemas:
    ManagedReferenceMatchesUpdate:
      properties:
        matches:
          items:
            $ref: '#/components/schemas/ManagedReferenceMatchItem'
          type: array
          maxItems: 1000
          title: Matches
      type: object
      title: ManagedReferenceMatchesUpdate
      description: Replace a target's saved reference matches.
    ManagedReferenceMatchItem:
      properties:
        reference_kind:
          $ref: '#/components/schemas/ManagedReferenceKind'
        source_key:
          type: string
          maxLength: 255
          minLength: 1
          title: Source Key
        resolved_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Resolved Id
          description: Target resource id. Null leaves a secret store unlinked.
      type: object
      required:
        - reference_kind
        - source_key
      title: ManagedReferenceMatchItem
      description: The target's equivalent of one source model, MCP integration or store.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ManagedReferenceKind:
      type: string
      enum:
        - model
        - mcp_integration
        - secret_store
      title: ManagedReferenceKind
      description: Kind of source-side reference a target workspace must resolve locally.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyCookie:
      type: apiKey
      in: cookie
      name: fastapiusersauth

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.