Show examples in:
Request a new upload

Body Parameters

filename  Optional  string  Example: "image.png"

The original file name

Returns

Returns a upload_request resource object.

Examples

Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const uploadRequest = await client.uploadRequest.create({});
console.log(uploadRequest);
}
run();