> ## 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.

# Add Agent Preset Approvers

> Add who may approve the preset's tool calls; idempotent, applies at once.



## OpenAPI

````yaml https://platform.tracecat.com/api/openapi.json post /workspaces/{workspace_id}/agent/presets/{preset_id}/approvers
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:
  /workspaces/{workspace_id}/agent/presets/{preset_id}/approvers:
    post:
      tags:
        - agent-presets
      summary: Add Agent Preset Approvers
      description: >-
        Add who may approve the preset's tool calls; idempotent, applies at
        once.
      operationId: agent-presets-add_agent_preset_approvers
      parameters:
        - name: preset_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Preset Id
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Workspace Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentPresetApproversUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AgentPresetApproverRead'
                title: Response Agent-Presets-Add Agent Preset Approvers
        '400':
          description: Approvers outside the workspace, or over the cap
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentPresetValidationErrorResponse'
        '404':
          description: Agent preset not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyCookie: []
        - ServiceAccountApiKeyBearer: []
components:
  schemas:
    AgentPresetApproversUpdate:
      properties:
        approvers:
          items:
            $ref: '#/components/schemas/AgentPresetApproverRef'
          type: array
          maxItems: 10000
          title: Approvers
      type: object
      required:
        - approvers
      title: AgentPresetApproversUpdate
      description: Approvers to add to or remove from a preset; repeats collapse to one.
    AgentPresetApproverRead:
      properties:
        kind:
          $ref: '#/components/schemas/AgentPresetApproverKind'
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
          description: Set for users only.
      type: object
      required:
        - kind
        - id
        - name
      title: AgentPresetApproverRead
      description: An approver or approver option with its display name.
    AgentPresetValidationErrorResponse:
      properties:
        detail:
          anyOf:
            - type: string
            - $ref: '#/components/schemas/AgentPresetValidationErrorDetail'
          title: Detail
      type: object
      required:
        - detail
      title: AgentPresetValidationErrorResponse
      description: HTTP response body for agent preset validation failures.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AgentPresetApproverRef:
      properties:
        kind:
          $ref: '#/components/schemas/AgentPresetApproverKind'
        id:
          type: string
          format: uuid
          title: Id
      type: object
      required:
        - kind
        - id
      title: AgentPresetApproverRef
      description: A user, group, or role named as an approver.
    AgentPresetApproverKind:
      type: string
      enum:
        - user
        - group
        - role
    AgentPresetValidationErrorDetail:
      properties:
        message:
          type: string
          title: Message
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
        tool_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Tool Count
        max_tools:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Tools
        missing_skill_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Missing Skill Ids
        skill_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Skill Id
        skill_names:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Skill Names
        skills:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Skills
        skill_version_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Skill Version Id
        skill_version_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Skill Version Ids
        preset_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Preset Id
        preset_version_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Preset Version Id
        mcp_integration_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Mcp Integration Id
        mcp_integration_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Mcp Integration Ids
        tool_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tool Ids
      type: object
      required:
        - message
      title: AgentPresetValidationErrorDetail
      description: Structured details for agent preset validation failures.
    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
    ServiceAccountApiKeyBearer:
      type: http
      description: Tracecat service account API key.
      scheme: bearer

````

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