Change Connected Account services
const url = 'https://example.com/api/v1/system/integrations/accounts/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"calendar_enabled":true,"mail_enabled":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://example.com/api/v1/system/integrations/accounts/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "calendar_enabled": true, "mail_enabled": true }'Enable or disable Mail and Calendar for this Connected Account. Keep at least one supported service enabled. A signed-in User with data scope is required. The request can return 400 if the settings are invalid or 404 if the account is missing. It can return 401 if the session is missing or 403 if the User lacks data scope. Route: /api/v1/system/integrations/accounts/{id}. Inputs: id. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Initial Mail and Calendar switches for an existing shared account (#407, DESIGN §49).
object
Examplegenerated
{ "calendar_enabled": true, "mail_enabled": true}Responses
Section titled “Responses”The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}