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

# Update a dynamic component

> Updates the enabled status and/or instructions for a dynamic component. Only accessible when SDK3 is enabled for the app. The name, title, and description fields are read-only.



## OpenAPI

````yaml /deploy/api/openapi.json patch /api/v2/appuid/{appUid}/agents/uid/{agentUid}/dynamicComponents/name/{name}
openapi: 3.0.1
info:
  title: Mindset API Gateway
  version: 1.2.0
servers:
  - url: https://a.api.mindset.ai
  - url: https://b.api.mindset.ai
  - url: https://c.api.mindset.ai
  - url: https://d.api.mindset.ai
security: []
tags:
  - name: Agent Configuration
  - name: Agent Sessions
  - name: AppStatus
  - name: Context Files
  - name: Contexts
  - name: DynamicComponents
  - name: Labels
  - name: SDK Users
  - name: Threads
  - name: Webhooks
  - name: Agent Management (deprecated)
paths:
  /api/v2/appuid/{appUid}/agents/uid/{agentUid}/dynamicComponents/name/{name}:
    patch:
      tags:
        - DynamicComponents
      summary: Update a dynamic component
      description: >-
        Updates the enabled status and/or instructions for a dynamic component.
        Only accessible when SDK3 is enabled for the app. The name, title, and
        description fields are read-only.
      operationId: updateDynamicComponent
      parameters:
        - name: appUid
          in: path
          description: Your application's uid
          required: true
          schema:
            minLength: 1
            type: string
        - name: agentUid
          in: path
          description: The agent's uid
          required: true
          schema:
            minLength: 1
            type: string
        - name: name
          in: path
          description: The component name (e.g., 'mindset-accordion')
          required: true
          schema:
            minLength: 1
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DynamicComponentPatch'
        required: true
      responses:
        '200':
          description: Successful update
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicComponent'
        '401':
          description: Unauthorized
          content: {}
        '403':
          description: Forbidden
          content: {}
        '404':
          description: >-
            Component not found, agent not found, or SDK3 not enabled for this
            app
          content: {}
        '422':
          description: Validation error - e.g., instructions too long or empty
          content: {}
        '500':
          description: Internal Server Error
          content: {}
      security:
        - APIKeyHeader: []
components:
  schemas:
    DynamicComponentPatch:
      type: object
      properties:
        enabled:
          type: boolean
          description: Whether the component is enabled for use by the AI agent
        instructions:
          maxLength: 2000
          minLength: 1
          type: string
          description: >-
            Custom instructions for the AI agent on when and how to use this
            component
      description: Fields that can be updated on a dynamic component
    DynamicComponent:
      type: object
      properties:
        name:
          type: string
          description: Unique name/identifier of the component (e.g., 'mindset-accordion')
          readOnly: true
        title:
          type: string
          description: Display title of the component
          readOnly: true
        description:
          type: string
          description: Description of what the component does
          readOnly: true
        enabled:
          type: boolean
          description: Whether the component is enabled for use by the AI agent
          default: true
        instructions:
          maxLength: 2000
          minLength: 1
          type: string
          description: >-
            Custom instructions for the AI agent on when and how to use this
            component
        createdAt:
          type: string
          description: Creation timestamp (ISO 8601)
          format: date-time
          readOnly: true
        modifiedAt:
          type: string
          description: Last modification timestamp (ISO 8601)
          format: date-time
          readOnly: true
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      name: x-api-key
      in: header

````