Enable or Suspend Object Versioning
Turn versioning on, or suspend it. Suspending stops new versions being created; existing versions are retained and continue to be billed.
The bucket must be in a ready state. Versioning cannot be suspended while object lock is enabled, because a locked bucket requires it.
PUT
/datasets/{Dataset_Id}/versioning/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
Whether new uploads create a new version of an object instead of replacing it.
Disabled suspends versioning; existing versions are retained.
example
EnabledResponses
No documented responses.