younifyd
Menu

List Datasets

List all datasets available to the project

GET/projects/{projectId}/datasets

Use it in a workflow

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

Request

Path parameters

projectIdstringrequired

Query parameters

includeStatsstring

Include statistics for each dataset in a `stats` field. Any value turns this on, including `false`, so omit the parameter to leave statistics out.

datasetProfilestring

Only return datasets with this dataset profile.

One ofcontentcommentslastSeenInStudioconnection

addonForstring

Only return add-on datasets for the dataset with this name. If no dataset has this name, the request fails with `Dataset "<name>" not found`.

Response

Returns 200 with a array<object>. Read it in later steps with {{listDatasets.response.data.<field>}}.

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