API

Enable or disable a branch

POST/api/crm/v2/branches.toggle_statusv2
operationId: branches.toggleStatus

Enables or disables a branch. At least one published branch must remain in the network: the last one cannot be disabled.

Authorization

api-token + language + role

Request body application/json

object
idintegerrequired

Example: 1

activebooleanrequired

Example: true

Responses

OK

object
statusstringrequired

Values:successerror

Example: success

dataobject