Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

Delete service token

DELETE/v1/workspaces/{workspaceId}/service-tokens/{serviceTokenId}Delete service token

Revokes the service token with the given ID by deleting it.

Parameters

workspaceIdstringpathrequired

pattern ^(wksp_)?([cC][^\s-]{8,}|[a-z0-9]+)$

serviceTokenIdstringpathrequired

pattern ^(itgr_)?([cC][^\s-]{8,}|[a-z0-9]+)$

Responses

204Deleted the service token successfully.
401Missing or invalid authorization token.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
404Workspace not found, or the service token does not exist in it.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
Documentation menu