younifyd
Menu

Create index

Create index

POST/indexes

Use it in a workflow

  1. Add a step and choose the Meilisearch connector.
  2. Pick the Create index action (under Indexes).
  3. Fill in the fields below, then reference the result from later steps as {{createIndex.response.data}}.

Request

Request body

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

uidstringrequired
primaryKeystring | null

[Primary key](https://www.meilisearch.com/docs/learn/getting_started/primary_key) of the index

json
{
  "uid": "movies",
  "primaryKey": "id"
}

Response

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

taskUidinteger (u-int32)

Unique sequential identifier of the task.

indexUidstring | null

Unique identifier of the targeted index. Null for global tasks.

statusstring

The status of a task.

One ofenqueuedprocessingsucceededfailedcanceled

typestring

The type of the task.

One ofdocumentAdditionOrUpdatedocumentEditiondocumentDeletionsettingsUpdateindexCreationindexDeletionindexUpdateindexSwaptaskCancelationtaskDeletiondumpCreationsnapshotCreationexportupgradeDatabaseindexCompactionnetworkTopologyChangedsrUpdatedsrClear

enqueuedAtstring (date-time)

Date and time when the task was enqueued.

customMetadatastring | null

Custom metadata attached to this task at creation. Use it to associate tasks with external systems or add application-specific information.

json
{
  "taskUid": 0,
  "status": "processing",
  "type": "documentAdditionOrUpdate",
  "enqueuedAt": "2025-01-01T00:00:00Z",
  "indexUid": "string",
  "customMetadata": "string"
}

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

Was this page helpful?