Show examples in:
Update CDN settings default assets

Allows to modify default settings for assets serving optimization from the CDN

Body Parameters

assets_cdn_default_settings  Required  object

Allows setting default parameters for assets served through the CDN

Returns

Returns a site resource object.

Examples

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