Skip to main content
PATCH
/
agent
/
v1
/
agents
/
{id}
Update agent
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"
}

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Path Parameters

id
string
required

Agent ID

Body

application/json
name
string
description
string
instructions
string
model
string
vaultIds
string[] | null
enabledTools
string[] | null
disabledTools
string[] | null
sandbox
object

Response

Updated agent

id
string
name
string
description
string | null
instructions
string
model
string
vaultIds
string[] | null
enabledTools
string[] | null
disabledTools
string[] | null
sandbox
object
isActive
boolean
createdAt
string<date-time>
updatedAt
string<date-time>