---
title: "Create Pagefind Index for Dataset"
method: PUT
path: "/api/dataset/pagefind"
tags: ["Dataset"]
---

# Create Pagefind Index for Dataset

`PUT /api/dataset/pagefind`

Uses pagefind to index the dataset and store the result into a CDN for retrieval. The auth'ed
user must be an admin of the organization to create a pagefind index for a dataset.

## Headers

- `TR-Dataset` string, uuid, required

## Response `204`

Dataset indexed successfully

## Other responses

- `400` — Service error relating to creating the index

---

[API](https://skmtc.net/devflowinc/apis/trieve-api.md) · [All operations](https://skmtc.net/devflowinc/apis/trieve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/devflowinc/trieve-api/revisions/84583e7c9fc1/schema)
