Commerce

Disconnect a Drupal site and revoke its key

POST
/v1/drupal/disconnect

Authenticated with the key the site received when it connected. Revokes that key in Decionis, for the Drupal provider only, then marks the site disconnected. If the key cannot be revoked, the answer is an error and the site stays connected, so a retry is safe. Once disconnected the key no longer authenticates, and repeating the call answers 401. The organization stays: connecting the site again binds it to the same one.

Authorization

DrupalSiteKey
AuthorizationBearer <token>

The organization API key a Drupal site received, once, when it connected (connect/verify or connect/code). Only that key is accepted, compared with the hash stored at connect; another key of the same organization is refused.

In: header

Request Body

application/json

org_id*string
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/drupal/disconnect" \  -H "Content-Type: application/json" \  -d '{    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b"  }'
{  "disconnected": true,  "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b"}