LogoFreestyle
API Reference/Git

Revoke an access token for a Git identity

Revoke an access token for a Git identity

DELETE/git/v1/identity/{identity}/tokens

Request Body

application/jsonRequired
tokenIdRequiredstring
Format: "uuid"

Path Parameters

identityRequiredstring
Format: "uuid"

Response Body

200

Token revoked

responseRequiredobject

401

Unauthorized

messageRequiredstring

403

Forbidden

messageRequiredstring

404

Not found

messageRequiredstring

500

Internal server error

messageRequiredstring
curl -X DELETE "https://api.freestyle.sh/git/v1/identity/497f6eca-6276-4993-bfeb-53cbbbba6f08/tokens" \
  -H "Content-Type: application/json" \
  -d '{
    "tokenId": "07dfef4c-e677-4ce6-87a3-cd348338445f"
  }'

Token revoked

{}