If you need to make changes to a sandbox environment, you can add an X-Environment
header to specify it. With no X-Environment
header, the primary environment will be used:
curl \-H 'Authorization: Bearer YOUR-API-TOKEN' \-H 'Accept: application/json' \-H 'X-Environment: my-sandbox-environment' \https://site-api.datocms.com/site