Update the root company profile and call settings.
curl --request PATCH \
--url https://omni-api.sendblue.com/admin/company-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dba": "Acme",
"notification_email": null
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({dba: 'Acme', notification_email: null})
};
fetch('https://omni-api.sendblue.com/admin/company-settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/admin/company-settings"
payload = {
"dba": "Acme",
"notification_email": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "50fa2715-53a7-45f8-96ea-f5cc3dd78927",
"name": "acme",
"dba": "Acme",
"website": null,
"primary_phone": null,
"country": "US",
"state": null,
"default_forwarding_number": null,
"call_forwarding_enabled": false,
"call_recording_enabled": false,
"inbound_first_allowed": true,
"notification_email": null,
"dev_center_enabled": true,
"verified": false
}{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Update the root company profile and call settings.
Requires a current person administrator. Omitted fields retain their values. Null clears a nullable setting. Unknown or read-only fields are refused. Read the resource after write_outcome_unknown.
Required permission: settings:write. Accepted credentials: a signed-in administrator.
PATCH
/
admin
/
company-settings
Update the root company profile and call settings.
curl --request PATCH \
--url https://omni-api.sendblue.com/admin/company-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dba": "Acme",
"notification_email": null
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({dba: 'Acme', notification_email: null})
};
fetch('https://omni-api.sendblue.com/admin/company-settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/admin/company-settings"
payload = {
"dba": "Acme",
"notification_email": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "50fa2715-53a7-45f8-96ea-f5cc3dd78927",
"name": "acme",
"dba": "Acme",
"website": null,
"primary_phone": null,
"country": "US",
"state": null,
"default_forwarding_number": null,
"call_forwarding_enabled": false,
"call_recording_enabled": false,
"inbound_first_allowed": true,
"notification_email": null,
"dev_center_enabled": true,
"verified": false
}{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Authorizations
personbearerlegacyKeyId & legacyKeySecret
Body
application/json
Response
The company's stored profile and call settings.