PATCH
/
agent
/
{id}
curl --request PATCH \
  --url https://atoms-api.smallest.ai/api/v1/agent/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "language": {
    "enabled": "en",
    "switching": false
  },
  "synthesizer": {
    "voiceConfig": {
      "model": "waves_lightning_large_voice_clone",
      "voiceId": "<string>",
      "gender": "male"
    },
    "speed": 1.2,
    "consistency": 0.5,
    "similarity": 0,
    "enhancement": 1
  },
  "globalKnowledgeBaseId": "<string>",
  "slmModel": "electron",
  "defaultVariables": {},
  "globalPrompt": "<string>",
  "telephonyProductId": "<string>"
}'
{
  "status": true,
  "data": "60d0fe4f5311236168a109ca"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json

Response

200
application/json
Agent updated successfully

The response is of type object.