v61

latestOpenAPI 3.1.0Apache 2.0raw.githubusercontent.com2026-08-018131,3812.6 MB
Personal Access Tokens

Update personal access token details

Update personal access token details.

patch/v3/users/{userId}/access-tokens/{tokenId}

Request body

namestring

Response

Response containing details of a personal access token.

idstring uuid required

Contains a unique identifier used for this resource.

user_idstring uuid required

Contains a unique identifier used for a user.

namestring required
state'ACTIVE' | 'REVOKED' | 'EXPIRED' required

State of the personal access token.

revoked_bystring uuid nullable

Contains a unique identifier used for the user that revoked this token.

created_atstring date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_atstring date-time required

An ISO-8601 timestamp representation of entity update date.

last_used_atstring date-time nullable

An ISO-8601 timestamp representation of entity last used date.

expires_atstring date-time nullable required

An ISO-8601 timestamp representation of entity expiration date.

revoked_atstring date-time nullable

An ISO-8601 timestamp representation of entity revoked at date.

Example response

{
  "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "user_id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "revoked_by": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z",
  "last_used_at": "2022-11-04T20:10:06.927Z",
  "expires_at": "2022-11-04T20:10:06.927Z",
  "revoked_at": "2022-11-04T20:10:06.927Z"
}