Edit Mobile Agent Draft
const url = 'https://api.vocapable.com/v1/mobile/agents/example/draft';const options = { method: 'PATCH', headers: { 'Idempotency-Key': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"expected_updated_at":"2026-04-15T12:00:00Z","tools":["check_calendar"],"sms_template_ids":["example"],"handoff_target_rep_ids":["example"],"conversation_settings":{"default_language":"en","supported_languages":["en"],"allow_language_switch":true,"action_decision_mode":"auto","focused_reply_temperature":1,"focused_action_timeout_seconds":1,"speech_pronunciations":{"additionalProperty":"example"}},"instructions":"example","tone":"example","objectives":[{}],"max_call_seconds":1,"name":"example","assistant_name":"example","disclosure_config":{"additionalProperty":"example"},"knowledge_pack_id":"example","knowledge_pack_version":1,"stock_voice_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.vocapable.com/v1/mobile/agents/example/draft \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: example' \ --data '{ "expected_updated_at": "2026-04-15T12:00:00Z", "tools": [ "check_calendar" ], "sms_template_ids": [ "example" ], "handoff_target_rep_ids": [ "example" ], "conversation_settings": { "default_language": "en", "supported_languages": [ "en" ], "allow_language_switch": true, "action_decision_mode": "auto", "focused_reply_temperature": 1, "focused_action_timeout_seconds": 1, "speech_pronunciations": { "additionalProperty": "example" } }, "instructions": "example", "tone": "example", "objectives": [ {} ], "max_call_seconds": 1, "name": "example", "assistant_name": "example", "disclosure_config": { "additionalProperty": "example" }, "knowledge_pack_id": "example", "knowledge_pack_version": 1, "stock_voice_id": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Unique key for this draft change. Retry with the same key and body to replay the saved result instead of repeating the change. Stored for 24 hours; a replay carries Idempotent-Replay: true.
Request Bodyrequired
Section titled “Request Bodyrequired”Partial draft edits; all other saved settings and published versions are retained.
object
Versioned dialogue policy; language availability is qualified by the speech service.
object
object
object
Responses
Section titled “Responses”Successful Response
object
One server-resolved, immutable direct-rep target in an agent snapshot.
A write request names only rep_id values. Control-api resolves those ids against
active, transfer-enabled tenant reps and persists this compact snapshot so an AgentVersion
never follows a later mutable Settings record. A raw destination is deliberately not part
of this customer/model/runtime representation.
object
Versioned dialogue policy; language availability is qualified by the speech service.
object
object
object
object
Example
{ "tools": [ "check_calendar" ], "conversation_settings": { "default_language": "en", "supported_languages": [ "en" ], "allow_language_switch": true, "action_decision_mode": "auto" }, "custom_behavior_fields": [ "instructions" ]}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}