# Write cache entries

```http
POST /projects/{project_reference}/cache/entries/write
```

Creates or replaces up to 100 cache entries in one transaction: all are written or none. Requires project.cache.write.

## Parameters

| Name                | In   | Required | Description                                                |
| ------------------- | ---- | -------- | ---------------------------------------------------------- |
| `project_reference` | path | Yes      | Project slug, UUID, or domain that identifies the project. |

## Request body

| Field     | Type  | Required | Description                                                                                             |
| --------- | ----- | -------- | ------------------------------------------------------------------------------------------------------- |
| `entries` | array | Yes      | 1 to 100 entries with distinct keys. Written in one transaction; any invalid entry rejects the request. |

## Responses

| Status | Description                           |
| ------ | ------------------------------------- |
| 200    | The written entries in request order. |
| 400    | Bad request                           |
| 401    | Unauthorized                          |
| 403    | Forbidden                             |
| 404    | Not found                             |
| 413    | Payload too large                     |
| 500    | Server error                          |
