Disabling and Enabling Adapter Instances

It is easy to disable and reenable adapter instances using the platform APIs. This allows adapter 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 adapter 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-us.integrate.sugarapps.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-us.integrate.sugarapps.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>"