Updates an agent definition. Only provided fields are changed.
curl --request PATCH \
--url https://api.case.dev/agent/v1/agents/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"instructions": "<string>",
"model": "<string>",
"vaultIds": [
"<string>"
],
"enabledTools": [
"<string>"
],
"disabledTools": [
"<string>"
],
"sandbox": {}
}
'{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"instructions": "<string>",
"model": "<string>",
"vaultIds": [
"<string>"
],
"enabledTools": [
"<string>"
],
"disabledTools": [
"<string>"
],
"sandbox": {},
"isActive": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}API key starting with sk_case_
Agent ID
Was this page helpful?
curl --request PATCH \
--url https://api.case.dev/agent/v1/agents/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"instructions": "<string>",
"model": "<string>",
"vaultIds": [
"<string>"
],
"enabledTools": [
"<string>"
],
"disabledTools": [
"<string>"
],
"sandbox": {}
}
'{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"instructions": "<string>",
"model": "<string>",
"vaultIds": [
"<string>"
],
"enabledTools": [
"<string>"
],
"disabledTools": [
"<string>"
],
"sandbox": {},
"isActive": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}