Rotate tokens
post
/api/pvlt/1.0/data/collections/{collection}/rotate/tokens
Generates new token IDs for a list of tokens.
The role performing this operation must have both of these:
- The
CapTokensWriter
capability. - At least one allowing policy and no denying policies for the
write
operation for thetokens
resource of the specified collection.
See identity and access management for more information about how capabilities are used to control access to operations and policies are used to control access to data.
Request
Header parameters
X-Tenant-Id
- array of stringsList of tenant IDs to enforce on the request.
Path parameters
collection
- string required*The name of a collection.
Query parameters
token_ids
- array of strings required*Comma-separated list of token IDs.
adhoc_reason
- stringAn ad-hoc reason for accessing the Vault data. Required when
reason
is set toOther
.reason
- string required*Details of the reason for requesting the property. The default is set when no access reason is provided and PVAULT_SERVICE_FORCE_ACCESS_REASON is false.
custom_audit
- stringCustom audit information to be included in the audit log.
reload_cache
- booleanReloads the cache before the action.