younifyd
Menu

Update Dataset

Update a dataset

PATCH/projects/{projectId}/datasets/{name}

Use it in a workflow

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

Request

Path parameters

projectIdstringrequired
namestringrequired

Request body

Enter the body as JSON in the step's Body field.

aclModestring

The ACL mode to set for the dataset. Omit to keep the current mode. Setting `private` requires the private datasets feature, and `custom` requires the third-party login feature. Otherwise, the request fails with `ACL mode "<mode>" not allowed for this project`.

One ofpublicprivatecustom

descriptionstring | null

A description of the dataset. Set to `null` to clear it.

json
{
  "aclMode": "public",
  "description": "string"
}

Response

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

datasetNamestring
aclModestring
descriptionstring | null
json
{
  "datasetName": "string",
  "aclMode": "string",
  "description": "string"
}

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