Set object retention
Protects one version until retainUntil. Nobody can delete the version or shorten the date before then. A date that is not in the future, or that is before the current retention, fails. Role: editor or higher.
PUT
/v1/workspaces/{workspaceId}/buckets/{bucketId}/objects/{keyToken}/retentionAuthentication
Send your Graphon API key with every request. The value is the whole API key that Graphon showed when you created it. See Authentication.
Authorization: Bearer <GRAPHON_API_KEY>Path parameters
workspaceIdstringThe workspace id.
bucketIdstringThe bucket id.
keyTokenstringThe object key, base64url-encoded without padding.
Request body
versionIdstringThe version to protect.
retainUntilstringWhen the protection ends, in UTC, such as 2027-01-01T00:00:00Z. It is in the future, and not before the current retention.
Was this page helpful?