File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -11346,21 +11346,14 @@ paths:
11346
11346
- personalAccessToken: []
11347
11347
- oauth:
11348
11348
- object_storage:read_write
11349
- parameters:
11350
- - name: name
11351
- in: query
11352
- required: true
11353
- description: >
11354
- The `name` of the object for which to update its Access Control List (ACL).
11355
- Use the [Object Storage Bucket Contents List](/docs/api/object-storage/#object-storage-bucket-contents-list)
11356
- endpoint to access all object names in a bucket.
11357
- schema:
11358
- type: string
11359
11349
requestBody:
11360
11350
description: The changes to make to this Object's access controls.
11361
11351
content:
11362
11352
application/json:
11363
11353
schema:
11354
+ required:
11355
+ - acl
11356
+ - name
11364
11357
properties:
11365
11358
acl:
11366
11359
type: string
@@ -11374,6 +11367,12 @@ paths:
11374
11367
The Access Control Level of the bucket, as a canned ACL string.
11375
11368
For more fine-grained control of ACLs, use the S3 API directly.
11376
11369
example: public-read
11370
+ name:
11371
+ type: string
11372
+ description: >
11373
+ The `name` of the object for which to update its Access Control List (ACL).
11374
+ Use the [Object Storage Bucket Contents List](/docs/api/object-storage/#object-storage-bucket-contents-list)
11375
+ endpoint to access all object names in a bucket.
11377
11376
responses:
11378
11377
'200':
11379
11378
description: The Object's canned ACL and policy.
@@ -11407,9 +11406,10 @@ paths:
11407
11406
curl -H "Content-Type: application/json" \
11408
11407
-H "Authorization: Bearer $TOKEN" \
11409
11408
-X PUT -d '{
11410
- "acl": "public-read"
11409
+ "acl": "public-read",
11410
+ "name": "example.txt"
11411
11411
}' \
11412
- https://api.linode.com/v4/object-storage/buckets/us-east-1/example-bucket/object-acl?name=example.txt
11412
+ https://api.linode.com/v4/object-storage/buckets/us-east-1/example-bucket/object-acl
11413
11413
/object-storage/buckets/{clusterId}/{bucket}/object-list:
11414
11414
parameters:
11415
11415
- name: clusterId
You can’t perform that action at this time.
0 commit comments