Bulk update personal access tokens
PATCH/personal-access-tokens/v1/bulk-update
This applies a single JSON Patch document to multiple personal access tokens (PATs) in the current tenant in one request.
The same patch is applied to every token referenced in ids. Up to 25 tokens can be updated per request.
This is an administrative operation intended for org admins managing PATs across their tenant. The caller must have the idn:all-personal-access-tokens:update right. API OAuth client credentials are not permitted to call this endpoint.
Note: This operation is also accessible via POST to the same path; both methods behave identically. Unlike the single-token patch endpoint, the request body uses Content-Type: application/json (not application/json-patch+json).
Allowed patch paths
Only expiration-related paths may be modified in bulk:
/expirationDate- Set or clear the token's expiration date. Any other path (for example/nameor/scope) results in a400response./userAwareTokenNeverExpires- Explicit acknowledgment that the token will never expire. expirationDate and userAwareTokenNeverExpires Relationship: When clearingexpirationDate(either by removing it or replacing it withnull),userAwareTokenNeverExpiresmust also be set totruein the same patch. This serves as an explicit acknowledgment that the caller is aware of the security implications of creating a token that will never expire. WhenexpirationDateis set to a valid future date-time,userAwareTokenNeverExpirescan be omitted. Note:userAwareTokenNeverExpiresis stored internally and is not returned in the response.
Request
Responses
- 200
- 400
- 401
- 403
- 429
- 500
The bulk update succeeded. Returns the updated representation of each personal access token, sorted by id.
Client Error - Returned if the request body is invalid.
Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.
Forbidden - Returned if the user you are running as, doesn't have access to this end-point.
Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.
Internal Server Error - Returned if there is an unexpected error.