Revoke and Create Registration Token

JFrog Security User Guide

Description: Revokes a specified registration token and generates a new, active token in a single operation.

Security: Requires a valid Identity Token with Admin privileges.

Usage: DELETE /runtime/api/v1/registration_token/{token}

Produces: application/json

Request Path Parameters

NameTypeRequired/OptionalDescription
tokenstringMandatoryThe registration token to be revoked.

Response Body

NameTypeDescription
access_tokenstringThe newly generated registration token.

Response Codes

201OK
401Unauthorized
403Permission denied
404Not found - The specified token does not exist.
500Internal server error

Examples

Request Sample

curl --location --request DELETE 'https://<JFROG_URL>/runtime/api/v1/registration_token/<TOKEN_TO_REVOKE>' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <IDENTITY_TOKEN>'

Successful Response Sample

{
  "access_token": "new_token"
}

Error Response Sample

{
  "error": "registration token not found"
}