---
title: "Registers new namespace rule to the database"
method: POST
path: "/api/v2/namespace-rules"
tags: ["data"]
---

# Registers new namespace rule to the database

`POST /api/v2/namespace-rules`

## Response `201`

Success

## Other responses

- `default` — Unexpected error

## Changes

- **2026-07-17** `97aa3ff2ec7c` — 1 info
  - endpoint added
- **2017-09-01** `b493865d180c` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/cayleygraph/apis/cayley-api/changes/api/v2/namespace-rules/post.md)

---

[API](https://skmtc.dev/cayleygraph/apis/cayley-api.md) · [All operations](https://skmtc.dev/cayleygraph/apis/cayley-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cayleygraph/cayley-api/revisions/97aa3ff2ec7c/schema)
