Sorry, no results found for "".
Must be exactly "upload_collection"
.
JSON API type field
The label of the upload collection
"Posts"
Ordering index
1
Parent upload collection
Underlying upload collections
Returns a resource object of type upload_collection.
PUT https://site-api.datocms.com/upload-collections/:upload_collection_id HTTP/1.1Authorization: Bearer YOUR-API-TOKENAccept: application/jsonX-Api-Version: 3Content-Type: application/vnd.api+json
{ "data": { "type": "upload_collection", "id": "uinr2zfqQLeCo_1O0-ao-Q" }}
curl -g 'https://site-api.datocms.com/upload-collections/:upload_collection_id' \ -X PUT \ -H "Authorization: Bearer YOUR-API-TOKEN" \ -H "Accept: application/json" \ -H "X-Api-Version: 3" \ -H "Content-Type: application/vnd.api+json" \ --data-binary '{"data":{"type":"upload_collection","id":"uinr2zfqQLeCo_1O0-ao-Q"}}'
await fetch( "https://site-api.datocms.com/upload-collections/:upload_collection_id", { method: "PUT", headers: { Authorization: "Bearer YOUR-API-TOKEN", Accept: "application/json", "X-Api-Version": "3", "Content-Type": "application/vnd.api+json", }, body: JSON.stringify({ data: { type: "upload_collection", id: "uinr2zfqQLeCo_1O0-ao-Q" }, }), },);
HTTP/1.1 200 OKContent-Type: application/jsonCache-Control: cache-control: max-age=0, private, must-revalidateX-RateLimit-Limit: 30X-RateLimit-Remaining: 28
{ "data": { "type": "upload_collection", "id": "uinr2zfqQLeCo_1O0-ao-Q", "relationships": { "parent": { "data": null }, "children": { "data": [ { "type": "upload_collection", "id": "uinr2zfqQLeCo_1O0-ao-Q" } ] } }, "attributes": { "label": "Posts", "position": 1 } }}