Menu
Run Schedule
Run schedule
POST
/schedules/{projectId}/{dataset}/{scheduleId}/publishUse it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Run Schedule action (under Scheduling).
- Fill in the fields below, then reference the result from later steps as
{{runSchedule.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{runSchedule.response.data.<field>}}.
{
"schedules": [
{
"id": "sch-28MRSuc1Ij4xtNa1rNbhTlMAszj",
"name": "March update",
"description": "string",
"projectId": "hb6nr9ev",
"dataset": "production",
"author": "poLhU1V3X",
"action": "publish",
"state": "scheduled",
"stateReason": "execution completed",
"documents": [
{
"documentId": "f28fe6ce-0454-42c2-8a9a-c469fbf79281",
"documentType": "article",
"ifRevisionId": "string"
}
],
"createdAt": "2022-04-27T01:54:31.536236Z",
"executeAt": "2022-04-27T01:55:00Z"
}
]
}
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?