The authenticated user must have one of the following permissions to use this method:
storage.objects.setIamPolicyIAM permission for the bucket containing the object
OWNERACL permission for the object
In addition to standard query parameters, the following query parameters apply to this method.
To see an example of how to include query parameters in a request, see the JSON API Overview page.
||Name of a bucket.|
The entity holding the permission. Can be
||Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI path parts.|
|Optional query parameters|
||If present, selects a specific revision of this object (as opposed to the latest version, the default).|
In the request body, supply the relevant portions of an ObjectAccessControls resource, according to the rules of patch semantics.
If successful, this method returns an ObjectAccessControls resource in the response body.
Use the APIs Explorer below to call this method on live data and see the response.