I want to make the bucket publically readable (so each file added will have a "shared publically link")
I tried to change update bucket from the JSON API (currently from the "Try it" on the API reference (https://developers.google.com/storage/docs/json_api/v1/buckets/update)
and add to the bucket predefinedAcl:PublicRead
The respose I get seems to be what I needed:
...
{
"kind": "storage#bucketAccessControl",
"id": "<bucket name>/allUsers",
"selfLink": "https://content.googleapis.com/storage/v1/b/<bucket name>/acl/allUsers",
"bucket": "<bucket name>",
"entity": "allUsers",
"role": "READER",
"etag": "CAI="
}
...
However, when I add a new file to the bucket I dont have the "shared publicly" checkbox checked.
What am I missing?
** EDIT ** A direct link (thanks to the accepted answer) to the json relevant command: https://developers.google.com/storage/docs/json_api/v1/defaultObjectAccessControls/update