Mindset v3 / Deploy in your app / Agent Configuration
View as MarkdownUpdate an agent by UID
Update an agent.
PATCH /api/v2/appuid/{appUid}/agents/uid/{uid}
Update an agent. Supports partial updates - only include fields you want to change. For nested objects (personality, formatting, policies, memory), the entire nested object is replaced if provided.
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
uidstringpathrequired
Unique ID of the agent
Request body
Content type: application/json.
agentNamestringbody
Name of the agent
agentPurposestringbody
Purpose of the agent
personalityobjectbody
Agent personality configuration
formattingobjectbody
Agent response formatting configuration
policiesobjectbody
Agent policy configuration with 10 toggleable policies
additionalPolicyRulesstringbody
Additional free-form policy rules
additionalInformationstringbody
Additional context information for the agent
iceBreakerMessagestringbody
Invisible instruction to prompt the agent to greet users in a specific way
memoryobjectbody
Agent memory configuration. Note: Memory access must be enabled at the app level for these settings to take effect.
optionsobjectbody
SDK3 display options. Only present for apps with SDK3 enabled (labsSDKV3Beta: true).
livebooleanbody
Agent is active and live for end users
showPromptLibrarybooleanbody
Show prompt library in SDK UI
contextUidsstring[]body
Array of existing context UIDs (max 30)
mcpserverUidsstring[]body
Array of existing MCP server UIDs (max 5)
planUidsstring[]body
Array of existing plan UIDs (max 20)
skillUidsstring[]body
Array of existing skill UIDs (max 20)
tagsstring[]body
Array of tags (max 10)
accessstringbody
Access control mode for this agent
One of: openAccess, restrictedAccess.
{
"agentName": "string",
"agentPurpose": "string",
"personality": {
"preset": "friendly",
"customText": "string"
},
"formatting": {
"preset": "conversational",
"customText": "string"
},
"policies": {
"focusAndScope": {
"enabled": true,
"scope": "string"
},
"knowledgeLimits": {
"enabled": true,
"themeSpecificAllowance": "string"
},
"nonContextSegmentMessage": {
"enabled": true,
"message": "string"
},
"clarification": {
"enabled": true
},
"recommendations": {
"enabled": true
},
"neutrality": {
"enabled": true
},
"professionalConduct": {
"enabled": true
},
"legalFinancial": {
"enabled": true
},
"safeguarding": {
"enabled": true,
"email": "string"
},
"feedback": {
"enabled": true
}
},
"additionalPolicyRules": "string",
"additionalInformation": "string",
"iceBreakerMessage": "string",
"memory": {
"allowAccess": true,
"allowContribution": true,
"miningGuidance": "string"
},
"options": {
"showSourceContent": true,
"sourceDisplayStyle": "compact",
"sourceCardType": "segments",
"showSpeakers": true,
"showFollowUpQuestions": true,
"showCitations": true,
"showQuickReplies": true
},
"live": true,
"showPromptLibrary": true,
"contextUids": [
"string"
],
"mcpserverUids": [
"string"
],
"planUids": [
"string"
],
"skillUids": [
"string"
],
"tags": [
"string"
],
"access": "openAccess"
}Responses
200
Successful update
{
"uid": "string",
"agentName": "string",
"agentPurpose": "string",
"personality": {
"preset": "friendly",
"customText": "string"
},
"formatting": {
"preset": "conversational",
"customText": "string"
},
"policies": {
"focusAndScope": {
"enabled": true,
"scope": "string"
},
"knowledgeLimits": {
"enabled": true,
"themeSpecificAllowance": "string"
},
"nonContextSegmentMessage": {
"enabled": true,
"message": "string"
},
"clarification": {
"enabled": true
},
"recommendations": {
"enabled": true
},
"neutrality": {
"enabled": true
},
"professionalConduct": {
"enabled": true
},
"legalFinancial": {
"enabled": true
},
"safeguarding": {
"enabled": true,
"email": "string"
},
"feedback": {
"enabled": true
}
},
"additionalPolicyRules": "string",
"additionalInformation": "string",
"iceBreakerMessage": "string",
"memory": {
"allowAccess": true,
"allowContribution": true,
"miningGuidance": "string"
},
"options": {
"showSourceContent": true,
"sourceDisplayStyle": "compact",
"sourceCardType": "segments",
"showSpeakers": true,
"showFollowUpQuestions": true,
"showCitations": true,
"showQuickReplies": true
},
"live": true,
"showPromptLibrary": true,
"contextUids": [
"string"
],
"mcpserverUids": [
"string"
],
"planUids": [
"string"
],
"skillUids": [
"string"
],
"tags": [
"string"
],
"access": "openAccess",
"externalTenantId": "string",
"createdAt": "string"
}400
Bad Request - Invalid input
401
Unauthorized
403
Forbidden
404
Agent not found
422
Unprocessable Entity - Validation error
Example request
curl -X PATCH "https://a.api.mindset.ai/api/v2/appuid/{appUid}/agents/uid/{uid}" \
-H "x-api-key: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{"agentName":"string","agentPurpose":"string","personality":{"preset":"friendly","customText":"string"},"formatting":{"preset":"conversational","customText":"string"},"policies":{"focusAndScope":{"enabled":true,"scope":"string"},"knowledgeLimits":{"enabled":true,"themeSpecificAllowance":"string"},"nonContextSegmentMessage":{"enabled":true,"message":"string"},"clarification":{"enabled":true},"recommendations":{"enabled":true},"neutrality":{"enabled":true},"professionalConduct":{"enabled":true},"legalFinancial":{"enabled":true},"safeguarding":{"enabled":true,"email":"string"},"feedback":{"enabled":true}},"additionalPolicyRules":"string","additionalInformation":"string","iceBreakerMessage":"string","memory":{"allowAccess":true,"allowContribution":true,"miningGuidance":"string"},"options":{"showSourceContent":true,"sourceDisplayStyle":"compact","sourceCardType":"segments","showSpeakers":true,"showFollowUpQuestions":true,"showCitations":true,"showQuickReplies":true},"live":true,"showPromptLibrary":true,"contextUids":["string"],"mcpserverUids":["string"],"planUids":["string"],"skillUids":["string"],"tags":["string"],"access":"openAccess"}'