Set a teammate's default line, how they are rung, or their working hours
const url = 'https://api.vocapable.com/v1/workspace/team/calling/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"expected_revision":1,"default_line_id":"example","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"}]}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.vocapable.com/v1/workspace/team/calling/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "expected_revision": 1, "default_line_id": "example", "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" } ] } }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”An owner or manager sets one teammate’s default line (null clears it), how they
are rung, or their working hours (null removes them). Fields left out are kept;
at least one must be sent.
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
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
{ "role": "owner", "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": {} } ]}