Skip to main content
PATCH
/
agents
/
{id}
Update an existing Agent
curl --request PATCH \
  --url https://commerce.driv.ly/api/agents/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "prompt": "<string>",
  "model": "<string>",
  "functions": [
    "<string>"
  ]
}
'
{
  "data": {
    "id": "<string>",
    "model": "<string>",
    "prompt": "<string>",
    "functions": [
      "<string>"
    ]
  },
  "success": true
}

Path Parameters

id
string
required

Agent is uniquely identified by id

Query Parameters

depth
integer

The number of levels of related objects to include in the response

Body

application/json
id
string

Agent is uniquely identified by id

prompt
string

Agent has Prompt

model
string

Agent has Agent Model

functions
string[]

Agent has Function

Response

Agent Updated

data
Agent · object
success
boolean