---
title: "Cache Create Namespace"
method: POST
path: "/api/v1.cache.namespace.create"
tags: ["Cache"]
---

# Cache Create Namespace

`POST /api/v1.cache.namespace.create`

Create cache namespace

## Request body

- CacheCreateNamespaceIn
  - `name` string, required
  - `eviction_policy` 'no-eviction'

## Response `200`

- CacheCreateNamespaceOut
  - `name` string, required
  - `eviction_policy` 'no-eviction', required
  - `created` integer, required
  - `updated` integer, required

## Other responses

- `400`
- `401`
- `403`
- `422`

## Changes

- **2026-04-14** `14bcce06404b` — 1 breaking, 1 warning, 1 info
  - added the pattern `^[a-zA-Z0-9\-/_.=+]+$` to the request property `name`
  - the `name` request property's maxLength was set to `256`
  - the `name` response's property pattern `^[a-zA-Z0-9\-/_.=+]+$` was added for the status `200`
- **2026-04-14** `cc2072f5a56a` — 1 breaking, 1 warning, 3 info
  - removed the enum value `NoEviction` of the request property `eviction_policy`
  - added the new `no-eviction` enum value to the `eviction_policy` response property for the response status `200`
  - the `eviction_policy` request property default value changed from `NoEviction` to `no-eviction`
  - added the new `no-eviction` enum value to the request property `eviction_policy`
  - …1 more
- **2026-04-13** `e6c44b12ecfb` — 2 breaking
  - the `created` response's property type/format changed from `string`/`date-time` to `integer`/`uint64` for status `200`
  - the `updated` response's property type/format changed from `string`/`date-time` to `integer`/`uint64` for status `200`
- **2026-03-31** `f62be26d2a53` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/svix/apis/diom-api/changes/api/v1.cache.namespace.create/post.md)

---

[API](https://skmtc.dev/svix/apis/diom-api.md) · [All operations](https://skmtc.dev/svix/apis/diom-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/svix/diom-api/revisions/14bcce06404b/schema)
