younifyd
Menu

Unpublish Documents

Unpublish documents

POST/unpublish/{projectId}/{dataset}

Use it in a workflow

  1. Add a step and choose the Sanity connector.
  2. Pick the Unpublish Documents action (under Scheduling).
  3. Fill in the fields below, then reference the result from later steps as {{unpublishDocuments.response.data}}.

Request

Path parameters

projectIdstringrequired

Project ID

datasetstringrequired

Dataset name

Response

Returns 200 with an object. Read it in later steps with {{unpublishDocuments.response.data.<field>}}.

transactionIdstring
json
{
  "transactionId": "string"
}

Need more? See the Sanity guide for connection setup and behaviour shared by every action.

Was this page helpful?