Delete a token
DELETE
/api/tokens/{id}
const url = 'https://app.dycrypt.com/o/acme/api/tokens/1';const options = {method: 'DELETE', headers: {cookie: 'JSESSIONID=<JSESSIONID>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://app.dycrypt.com/o/acme/api/tokens/1 \ --cookie JSESSIONID=<JSESSIONID>Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer format: int64
Responses
Section titled “Responses”Deleted.
No credential, or one that no longer resolves — revoked, expired, deleted. Replace it.
Media typeapplication/json
Every failure in this API has this shape and no other.
object
error
required
string
Example
{ "error": "this token does not have licenses:write"}Not available to API tokens, or the caller is not an organisation administrator.
Media typeapplication/json
Every failure in this API has this shape and no other.
object
error
required
string
Example
{ "error": "this token does not have licenses:write"}No such record, or no such endpoint.
Media typeapplication/json
Every failure in this API has this shape and no other.
object
error
required
string
Example
{ "error": "this token does not have licenses:write"}