Unsubscribe
This endpoint is deprecated. Please do not use it for new projects. The documentation remains here for legacy API consumers.
Canceling a subscription
Request with tokens
A DELETE request with the endpoint /jobabo/{aboId} will instruct the system to delete the subscription referenced by the ID.
1 |
curl -i -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X DELETE "https://api.softgarden.io/api/rest/v2/frontend/jobabo/{aboId}" |
with TOKEN being either a client access token or a user access token. The {aboId} corresponds to subscription one intends to cancel.
Request with basic authorization
As an alternative, you can use here the basic authorization method. Just write
1 |
curl -i -u "{clientId}:" -H "Content-Type: application/json" -X DELETE "https://api.softgarden.io/api/rest/v2/frontend/jobabo/{aboId}" |
{clientId} is the ID for your application to develop given to you by softgarden. The colon seen in the example is obligatory.
Path parameters
Name | Description | Data Type |
---|---|---|
aboId | The subscription to delete. | String |
Query parameters
– none –
Response values
Upon | Returned value | Description |
---|---|---|
success | boolean | ‘true‘ if unsubscription was successful, ‘false‘ otherwise e.g. if the ID was invalid. |
failure | 500 – INTERNAL SERVER ERROR | When an error appears while processing your request. |
authorization error | 401 / 403 | See here for details. |
Example return value:
1 |
true |