Actions18
Token → Update
AI-generatedSummary
Updates a registry access token's expiry date and/or status.
Inputs
- registryId (required) — The unique ID of the registry
- tokenId (required) — The unique ID of the token
- additionalFields — Optional fields to update the token. Available options: expiryDate (ISO format string), status (enabled or disabled).
Output shape
The API response from the PATCH request, containing the updated token object.
The request uses HTTP method PATCH with content type application/vnd.profitbricks.partial-properties+json. Only provided fields in additionalFields are sent; unspecified fields are left unchanged.
Examples
Example 1: Extend token expiry date
Set expiryDate to 2026-06-30T23:59:59Z while leaving status unchanged.
Example 2: Disable a token
Set status to disabled. expiryDate may be omitted.