# Save state item

`POST /v1.0/state/{storeName}`

This endpoint lets you save multiple items to the state store.

## Request

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `storeName` | string | Yes | The name of your state store. Pattern: `^[a-zA-Z0-9_-]+$`. |

### Request body

Required.

`application/json`

- `key` (string) — Required. Pattern: `^[a-zA-Z0-9_-]+$`.
- `value` (object) — Required.
- `etag` (string)
- `metadata` (object<string, string>)
  - `ttlInSeconds` (string) — Pattern: `^[0-9]+$`.
- `options` (object)

## Responses

### 204 — State saved.

### 400 — State store is missing or misconfigured or malformed request.

### 500 — Failed to save state.
