---
title: "Add Permission"
method: POST
path: "/internal/add-permission"
tags: ["internal"]
---

# Add Permission

`POST /internal/add-permission`

## Request

- Base URL: `https://api.kobaltlabs.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kobaltlabs.com/internal/add-permission`
- Auth: none declared

Add a new permission to the system.

DEPRECATED: permissions are now defined in code (``backend/defs/archetypes.py``
``PERMISSION_CATALOG``) and projected into the DB by the deploy reconcile
(``backend.scripts.sync_permissions``). Add new permissions to the catalog, not here.

## Request body `application/x-www-form-urlencoded`

- BodyAddPermissionInternalAddPermissionPost
  - `module_name` string, required
  - `object_name` string, required
  - `permission_name` string, required
  - `description` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kobaltlabs/apis/kobaltlabs-api.md) - [All operations](https://skmtc.dev/kobaltlabs/apis/kobaltlabs-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kobaltlabs/apis/kobaltlabs-api/revisions/8587332d5e43?raw)
