Show examples in:
Update a upload collection

Body Parameters

label  Optional  string  Example: "Posts"

The label of the upload collection

position  Optional  integer  Example: 1

Ordering index

parent  Optional  null, { type: "upload_collection", id: upload_collection.id }

Parent upload collection

children  Optional  Array of { type: "upload_collection", id: upload_collection.id }

Underlying upload collections

Returns

Returns a upload_collection resource object.

Examples

Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const uploadCollectionId = 'uinr2zfqQLeCo_1O0-ao-Q';
const uploadCollection = await client.uploadCollections.update(uploadCollectionId, {});
console.log(uploadCollection);
}
run();