HostingDelivery

Delete Delivery API token

DELETE/api/delivery/accounts/{id}/api_tokens/{token_id}

Deletes a Delivery API token.

X-Api-Token<token>

API token used to authenticate requests.

In: header

Path Parameters

token_id*integer
Format int32
id*integer
Format int32

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/api/delivery/accounts/0/api_tokens/0" \  -H "X-Api-Token: YOUR_API_TOKEN" \  -H "Accept: application/json"
Empty
{
  "message": "Unauthorized",
  "errors": []
}
{
  "message": "Forbidden",
  "errors": []
}
{
  "message": "Not found",
  "errors": []
}
{
  "message": "Validation failed",
  "errors": [
    {
      "field": "name",
      "description": "is not valid"
    }
  ]
}