Set Object Lock
Apply a governance retention to one object version, overriding the bucket default. Without bypass rights a retention period can only be extended, never shortened.
PUT
/datasets/{Dataset_Id}/objects/lock/Path parameters
Dataset_IdPathintegeroptionaldataset id
Query parameters
project_idQueryintegerrequiredProject ID
active_iamQueryintegeroptionalActive IAM ID (To access contact person account) Find your Active IAM ID here
locationQuerystringrequiredLocation
Request body
application/json
Object path within the bucket, without the bucket name.
example
train/images/example.pngVersion of the object to lock.
example
7e1a9f0c-0f6f-4a2a-9f1e-2b7c1d4e5a6bexample
GOVERNANCENumber of days this version is retained for.
example
30Responses
No documented responses.