PATCH
/
agents
/
{id}
curl --request PATCH \
  --url https://commerce.driv.ly/api/agents/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "ai_3jks93ndk3s9",
  "model": "gpt-4o",
  "prompt": "Respond to the customer service request",
  "functions": [
    "fnc_ed904md03684"
  ]
}'
{
  "data": {
    "id": "ai_3jks93ndk3s9",
    "model": "gpt-4o",
    "prompt": "Respond to the customer service request",
    "functions": [
      "fnc_ed904md03684"
    ]
  },
  "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

200
application/json
Agent Updated
data
object
Example:
{
  "id": "ai_3jks93ndk3s9",
  "model": "gpt-4o",
  "prompt": "Respond to the customer service request",
  "functions": ["fnc_ed904md03684"]
}
success
boolean