Agents
Update an agent
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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/json
Response
200
application/json
Agent updated successfully
The response is of type object
.
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"
}