Update Agent
Update the name or data of an agent with the Taskade REST API v1 (PATCH /agents/{agentId}).
Use this endpoint to update the name or the data of an agent.
patch
Update agent
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
agentIdstringRequired
Body
namestringOptional
Responses
200
Agent
application/json
Agent
okboolean · enumRequiredPossible values:
4XX
Error description
application/json
patch/agents/{agentId}
PATCH /api/v1/agents/{agentId} HTTP/1.1
Host: www.taskade.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 281
{
"name": "text",
"data": {
"commands": [
{
"name": "text",
"description": "text",
"prompt": "text",
"id": "text",
"mode": "default"
}
],
"description": "text",
"tone": "authoritative",
"avatar": {
"type": "emoji",
"data": {
"value": "text"
}
},
"knowledgeEnabled": true,
"language": "text",
"inputPlaceholder": "text"
}
}{
"ok": true,
"item": {
"id": "abc123DEF456",
"name": "Sales Pipeline",
"space_id": "abc123DEF456",
"data": {
"commands": [
{
"name": "Sales Pipeline",
"description": "Tracks deals from lead to close.",
"prompt": "Summarize the latest updates in this project.",
"id": "abc123DEF456",
"mode": "default"
}
],
"description": "Tracks deals from lead to close.",
"tone": "authoritative",
"avatar": {
"type": "emoji",
"data": {
"value": "example"
}
},
"knowledgeEnabled": true,
"language": "en",
"inputPlaceholder": "example"
}
}
}Last updated