younifyd
Menu

Put Datasets Datasetname Settings Backups

Enable or disable backups

PUT/datasets/{datasetName}/settings/backups

Use it in a workflow

  1. Add a step and choose the Sanity connector.
  2. Pick the Put Datasets Datasetname Settings Backups action (under Backups).
  3. Fill in the fields below, then reference the result from later steps as {{putDatasetsDatasetnameSettingsBackups.response.data}}.

Request

Path parameters

datasetNamestringrequired

Name of the dataset

Request body

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

enabledbooleanrequired

Enable or disable backups

json
{
  "enabled": false
}

Response

Returns 204 with a any. Read it in later steps with {{putDatasetsDatasetnameSettingsBackups.response.data.<field>}}.

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

Put Datasets Datasetname Settings Backups — Sanity — Documentation