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