Description: Revokes an access token by specifying the token or the token_id
Since: 1.2
Security: Admin
Usage: POST /api/v1/security/token/revoke
Request Headers: N/A
Consumes: application/x-www-form-urlencoded
cURL Example
$ curl -u user:password -X POST "http://ARTIFACTORY_SERVER_HOSTNAME:8082/distribution/api/v1/security/token/revoke" -d "token=fasdt3..."
or
$ curl -u user:password -X POST "http://ARTIFACTORY_SERVER_HOSTNAME:8082/distribution/api/v1/security/token/revoke" -d "token_id=7e0eec..."
Field | Type | Required | Description |
---|---|---|---|
| String | yes (if | The token to be revoked. Must not be specified if token_id specified. |
| String | yes (if | The ID of the token to be revoked. Must not be specified if token specified. |
Response status codes:
200 - Successfully revoked token 404 - Token not found