---
title: "Create a new permission"
method: POST
path: "/permissions"
tags: ["Api"]
---

# Create a new permission

`POST /permissions`

## Request body

- object
  - `name` string, required — Name of the permission to add
  - `file` string, required — Filename of the permission to add
  - `description` string — Description of the permission to add
  - `code` string — Middleware function

## Response `200`

Success

---

[API](https://skmtc.net/materiahq/apis/materia-server.md) · [All operations](https://skmtc.net/materiahq/apis/materia-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/materiahq/materia-server/versions/f4e80651bb93/schema)
