Menu
Copy Dataset Projects Api
Copy a dataset
PUT
/projects/{projectId}/datasets/{name}/copyUse it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Copy Dataset Projects Api action (under Projects).
- Fill in the fields below, then reference the result from later steps as
{{copyDatasetProjectsApi.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"targetDataset": "string",
"skipHistory": false,
"skipContentReleases": false,
"aclMode": "string"
}
Response
Returns 201 with an object. Read it in later steps with {{copyDatasetProjectsApi.response.data.<field>}}.
{
"datasetName": "production",
"message": "Starting copying dataset production to production-copy...",
"aclMode": "public",
"jobId": "string"
}
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?