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

# Update Agent

> Partially update an agent. Only provided fields are changed.



## OpenAPI

````yaml PATCH /agent/{agent_id}
openapi: 3.1.0
info:
  title: Stride Agents API
  description: >

    Build and deploy AI voice agents that can make and receive phone calls with
    natural conversation.


    ## Authentication


    All endpoints require an API key passed via the `Authorization` header:


    ```

    Authorization: Bearer sk_your_api_key

    ```


    ## Resources


    - **Agents** — Create and configure AI voice agents

    - **Calls** — Initiate, monitor, and manage voice calls

    - **Phone Numbers** — Manage phone numbers and routing

    - **Tools** — Define function calling tools for agents

    - **Knowledge Bases** — Upload documents for RAG-powered conversations

    - **Voices** — Browse available TTS voices
  version: 1.0.0
servers:
  - url: /v1
security: []
paths:
  /agent/{agent_id}:
    patch:
      tags:
        - Agents
      summary: Update agent
      description: Partially update an agent. Only provided fields are changed.
      operationId: update_agent_agent__agent_id__patch
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Agent Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAgentRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    UpdateAgentRequest:
      properties:
        name:
          anyOf:
            - type: string
              maxLength: 100
              minLength: 1
            - type: 'null'
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        system_prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: System Prompt
        first_message:
          anyOf:
            - type: string
            - type: 'null'
          title: First Message
        first_message_mode:
          anyOf:
            - type: string
            - type: 'null'
          title: First Message Mode
        model_provider:
          anyOf:
            - type: string
            - type: 'null'
          title: Model Provider
        model_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Model Name
        temperature:
          anyOf:
            - type: number
              maximum: 2
              minimum: 0
            - type: 'null'
          title: Temperature
        max_tokens:
          anyOf:
            - type: integer
              maximum: 8192
              minimum: 1
            - type: 'null'
          title: Max Tokens
        voice_provider:
          anyOf:
            - type: string
            - type: 'null'
          title: Voice Provider
        voice_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Voice Id
        voice_model:
          anyOf:
            - type: string
            - type: 'null'
          title: Voice Model
        voice_stability:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Voice Stability
        voice_similarity:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Voice Similarity
        voice_speed:
          anyOf:
            - type: number
              maximum: 2
              minimum: 0.5
            - type: 'null'
          title: Voice Speed
        transcriber_provider:
          anyOf:
            - type: string
            - type: 'null'
          title: Transcriber Provider
        transcriber_model:
          anyOf:
            - type: string
            - type: 'null'
          title: Transcriber Model
        transcriber_language:
          anyOf:
            - type: string
            - type: 'null'
          title: Transcriber Language
        background_sound:
          anyOf:
            - type: string
            - type: 'null'
          title: Background Sound
        background_sound_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Background Sound Url
        max_duration:
          anyOf:
            - type: integer
              maximum: 43200
              minimum: 10
            - type: 'null'
          title: Max Duration
        silence_timeout:
          anyOf:
            - type: integer
              maximum: 300
              minimum: 5
            - type: 'null'
          title: Silence Timeout
        enable_end_call:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Enable End Call
        voicemail_detection:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Voicemail Detection
        voicemail_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Voicemail Message
        server_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Server Url
        tool_ids:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Tool Ids
        rag_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Rag Enabled
        rag_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Rag Config
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        hipaa_compliance:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Hipaa Compliance
        audio_recording:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Audio Recording
        logging:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Logging
        transcript_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Transcript Enabled
      type: object
      title: UpdateAgentRequest
      description: >-
        Partial update for an existing agent.


        All fields are optional. Only provided (non-None) fields are written to
        the

        database. Use model_dump(exclude_none=True) to build the update payload.
    AgentResponse:
      properties:
        id:
          type: string
          title: Id
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
        org_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Org Id
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        model_provider:
          anyOf:
            - type: string
            - type: 'null'
          title: Model Provider
        model_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Model Name
        system_prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: System Prompt
        temperature:
          anyOf:
            - type: number
            - type: 'null'
          title: Temperature
        max_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Tokens
        first_message:
          anyOf:
            - type: string
            - type: 'null'
          title: First Message
        first_message_mode:
          anyOf:
            - type: string
            - type: 'null'
          title: First Message Mode
        voice_provider:
          anyOf:
            - type: string
            - type: 'null'
          title: Voice Provider
        voice_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Voice Id
        voice_model:
          anyOf:
            - type: string
            - type: 'null'
          title: Voice Model
        voice_stability:
          anyOf:
            - type: number
            - type: 'null'
          title: Voice Stability
        voice_similarity:
          anyOf:
            - type: number
            - type: 'null'
          title: Voice Similarity
        voice_speed:
          anyOf:
            - type: number
            - type: 'null'
          title: Voice Speed
        transcriber_provider:
          anyOf:
            - type: string
            - type: 'null'
          title: Transcriber Provider
        transcriber_model:
          anyOf:
            - type: string
            - type: 'null'
          title: Transcriber Model
        transcriber_language:
          anyOf:
            - type: string
            - type: 'null'
          title: Transcriber Language
        background_sound:
          anyOf:
            - type: string
            - type: 'null'
          title: Background Sound
        background_sound_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Background Sound Url
        max_duration:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Duration
        silence_timeout:
          anyOf:
            - type: integer
            - type: 'null'
          title: Silence Timeout
        enable_end_call:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Enable End Call
        voicemail_detection:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Voicemail Detection
        voicemail_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Voicemail Message
        server_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Server Url
        tool_ids:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Tool Ids
        rag_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Rag Enabled
        rag_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Rag Config
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
        deleted_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Deleted At
        hipaa_compliance:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Hipaa Compliance
        audio_recording:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Audio Recording
        logging:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Logging
        transcript_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Transcript Enabled
      type: object
      required:
        - id
        - name
      title: AgentResponse
      description: Full agent object returned by the API.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      scheme: bearer

````