BulkUpdatePersonalAccessTokensRequest
Request body for bulk updating personal access tokens. A single JSON Patch document is applied to every personal access token referenced in ids.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| ids | []str | The IDs of the personal access tokens to update. All IDs must reference personal access tokens that exist in the current tenant. Duplicate and blank values are not allowed. | [required] |
| patch | []JsonPatchOperation | A single JSON Patch document that is applied identically to every personal access token referenced in ids. Only the following paths are allowed for bulk updates: * /expirationDate - Set (replace) or clear (remove) the token's expiration. * /userAwareTokenNeverExpires - Explicit acknowledgment required when clearing expirationDate. Any other path (for example /name or /scope) results in a 400 response. | [required] |
| } |
Example
from sailpoint.personal_access_tokens.models.bulk_update_personal_access_tokens_request import BulkUpdatePersonalAccessTokensRequest
bulk_update_personal_access_tokens_request = BulkUpdatePersonalAccessTokensRequest(
ids=["695dab70d33d466b81d958dc9fb392db","abc123def456abc123def456abc12345"],
patch=[{"op":"replace","path":"/expirationDate","value":"2026-08-01T00:00:00.000Z"}]
)