Update Status of an Integration Type

This endpoint lets you update the integration status on a specific integration type.

post
Add Integration

ttps://api.studio.whisk.com/integrations/v1/update/state
You can specify the following body parameter to update the status:
Request
Response
Request
Headers
Authentication
required
string
Authentication token to authorize the API usage. For more information, see Authentication.
Body Parameters
body
required
object
This body object contains the integration identifier and the attribute to update the status.
Response
200: OK
This is how a successful response looks.
{}
400: Bad Request
This failed response appears when error codes are found in the endpoint query.
{
"error_code": "REAL_CODES_ARE_IN_ENDPOINT_DESCRIPTION",
"message": "Additional details about error are not static and can be changed"
}
401: Unauthorized
This failed response appears due to API authentication failure. The possible error codes that may appear are: auth.tokenNotFound , auth.tokenExpired, auth.tokenInvalid, auth.tokenRequired.
{
"code": "auth.tokenNotFound"
}
500: Internal Server Error
This failed response appears when something is not right on Whisk's end. Please send a message to help@whisk.com, and be sure to include both the Request and Response data. We’ll get back to you soon.
This is unexpected response, something is wrong on our side, please contact: help@whisk.com

Body Object Example

{
"integration_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "INTEGRATION_STATUS_DISABLED"
},

Sample Request and Response

Curl Request
Response
Curl Request
curl -X POST "https://api.studio.whisk.com/integrations/v1/update/state"
-H "Accept: application/json"
-H "Authorization: Bearer <YOUR-API-ACCESS-KEY>"
-H "Content-Type: application/json"
-d "{ \"integration_id\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", \"status\": \"INTEGRATION_STATUS_DISABLED\"},"

Note: Whisk allows you to discover and understand its API capabilities on the Swagger interface with the ability to try out the API calls directly in your browser. You can call this endpoint here.

Response
{}