Revoke a Token

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

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

token

String

yes (if token_id is empty)

The token to be revoked. Must not be specified if token_id specified.

token_id

String

yes (if token is empty)

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