Disabling and Enabling Element Instances

It is easy to disable and reenable element instances using the platform APIs. This allows element instances to maintain their specific configurations while being able to be disabled and enabled at any time. Instances can be disabled and enabled by using DELETE (to disable) and PUT (to enable) requests to the /instances/enabledendpoint.

The Authorization header needs to include the User secret, Organization secret, and element instance token of the instance that you want to disable/enable in this format:

Authorization: User <insert user secret here>, Organization <insert organization secret here> Element <insert instance token here>

Below are some example requests:

Disabling an Instance

curl -X DELETE "https://api.cloud-elements.com/elements/api-v2/instances/enabled" -H "accept: application/json" -H "Authorization: User <insert user secret here>, Organization <insert organization secret here> Element <insert instance token here>"

Enabling an Instance:

curl -X PUT "https://api.cloud-elements.com/elements/api-v2/instances/enabled" -H "accept: application/json" -H "Authorization: User <insert user secret here>, Organization <insert organization secret here> Element <insert instance token here>"