Change your default line or calling preference
const url = 'https://api.vocapable.com/v1/workspace/me/calling';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"expected_revision":1,"default_line_id":"example","call_mode_preference":"app","ring_preference":"app_then_phone","working_hours":{"timezone":"example","days":{"additionalProperty":[{"start":"example","end":"example"}]},"time_off":[{"start":"2026-04-15","end":"2026-04-15","label":"example"}]},"dnd_until":"2026-04-15T12:00:00Z"}'};
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/workspace/me/calling \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "expected_revision": 1, "default_line_id": "example", "call_mode_preference": "app", "ring_preference": "app_then_phone", "working_hours": { "timezone": "example", "days": { "additionalProperty": [ { "start": "example", "end": "example" } ] }, "time_off": [ { "start": "2026-04-15", "end": "2026-04-15", "label": "example" } ] }, "dnd_until": "2026-04-15T12:00:00Z" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Change your own calling preferences. default_line_id: null clears the default;
working_hours: null removes your hours; dnd_until: null ends do-not-disturb. A
field left out is unchanged.
object
The person’s own weekly hours. A day that is absent or empty is not worked.
time_off lists date ranges off (at most 24, each at most a year); past ranges may
stay and simply no longer match.
object
object
One span of a working day, local to the hours’ timezone. 24:00 ends at midnight;
a shift across midnight is two windows.
object
Whole days off - a holiday, leave (PRD E11-R2). Local dates in the hours’ timezone, both inclusive; on these days the person is never rung, whatever the weekly hours say.
Responses
Section titled “Responses”Successful Response
What the person reading needs to place a call: their lines and preferences.
object
A teammate named on a record: the id the server holds and the name to show.
object
The business line a call came from (E12-R1): the company’s own number, named.
object
The owner’s calling choices for the whole company. Every one defaults to off.
object
A teammate named on a record: the id the server holds and the name to show.
object
The person’s own weekly hours. A day that is absent or empty is not worked.
time_off lists date ranges off (at most 24, each at most a year); past ranges may
stay and simply no longer match.
object
object
One span of a working day, local to the hours’ timezone. 24:00 ends at midnight;
a shift across midnight is two windows.
object
Whole days off - a holiday, leave (PRD E11-R2). Local dates in the hours’ timezone, both inclusive; on these days the person is never rung, whatever the weekly hours say.
What the dispatcher, the receptionist’s transfer and the team page all read.
object
Example
{ "call_mode_preference": "app", "settings": { "allow_supervision": false, "summary_language": "spoken", "allow_offline_text_queue": false }, "ring_preference": "app_then_phone", "availability": { "state": "available", "presence_state": "available", "ring_preference": "app_then_phone" }}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}