Mindset v3 / Deploy in your app / DynamicComponents
View as MarkdownUpdate a dynamic component
Updates the enabled status and/or instructions for a dynamic component.
PATCH /api/v2/appuid/{appUid}/agents/uid/{agentUid}/dynamicComponents/name/{name}
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.
Base URL
Requests go to your region's API host, for example https://a.api.mindset.ai. Hosts: https://a.api.mindset.ai, https://b.api.mindset.ai, https://c.api.mindset.ai, https://d.api.mindset.ai.
Authorization
x-api-keystringheaderrequired
Your API key.
Path parameters
appUidstringpathrequired
Your application's uid
agentUidstringpathrequired
The agent's uid
namestringpathrequired
The component name (e.g., 'mindset-accordion')
Request body
Content type: application/json.
enabledbooleanbody
Whether the component is enabled for use by the AI agent
instructionsstringbody
Custom instructions for the AI agent on when and how to use this component
{
"enabled": true,
"instructions": "string"
}Responses
200
Successful update
{
"name": "string",
"title": "string",
"description": "string",
"enabled": true,
"instructions": "string",
"createdAt": "string",
"modifiedAt": "string"
}401
Unauthorized
403
Forbidden
404
Component not found, agent not found, or SDK3 not enabled for this app
422
Validation error - e.g., instructions too long or empty
500
Internal Server Error
Example request
curl -X PATCH "https://a.api.mindset.ai/api/v2/appuid/{appUid}/agents/uid/{agentUid}/dynamicComponents/name/{name}" \
-H "x-api-key: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{"enabled":true,"instructions":"string"}'