The owner's company-wide calling settings
PATCH
/v1/mobile/workspace/calling-settings
const url = 'https://api.vocapable.com/v1/mobile/workspace/calling-settings';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"expected_revision":1,"allow_personal_phone":true,"allow_dial_pad":true,"show_customer_numbers":true,"allow_supervision":true,"summary_language":"spoken","allow_offline_text_queue":true}'};
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/workspace/calling-settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "expected_revision": 1, "allow_personal_phone": true, "allow_dial_pad": true, "show_customer_numbers": true, "allow_supervision": true, "summary_language": "spoken", "allow_offline_text_queue": true }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
WorkspaceCallingSettingsUpdate
object
expected_revision
required
Expected Revision
integer
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
WorkspaceCallingSettings
The owner’s calling choices for the whole company. Every one defaults to off.
object
allow_personal_phone
required
Allow Personal Phone
boolean
allow_dial_pad
required
Allow Dial Pad
boolean
show_customer_numbers
required
Show Customer Numbers
boolean
revision
required
Revision
integer
updated_by
required
Any of:
WorkspacePersonRef
A teammate named on a record: the id the server holds and the name to show.
object
user_id
required
User Id
string
name
required
Name
string
null
allow_supervision
Allow Supervision
boolean
summary_language
Summary Language
string
allow_offline_text_queue
Allow Offline Text Queue
boolean
Example
{ "allow_supervision": false, "summary_language": "spoken", "allow_offline_text_queue": false}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}