younifyd
Menu

Update Embeddings Index Settings

Update embeddings index settings for a dataset

PUT/projects/{projectId}/datasets/{name}/settings/embeddings

Use it in a workflow

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

Request

Path parameters

projectIdstringrequired

The unique ID of the project.

namestringrequired

The name of the dataset.

Request body

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

enabledbooleanrequired

Whether to enable the embeddings index for the dataset.

projectionstring

The GROQ projection that defines which fields to include in the embeddings index. If you don't include a projection, we process the entire document JSON into a less verbose format and embed all of it. Example: "{title, author}" or "{...}" for all fields

json
{
  "enabled": false,
  "projection": "{title, author}"
}

Response

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

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

Was this page helpful?