---
title: "Api Create Namespace Role"
method: POST
path: "/api/v1/namespace/{namespace}/role"
tags: ["api"]
---

# Api Create Namespace Role

`POST /api/v1/namespace/{namespace}/role`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `namespace` string, required

## Request body

- APIPostNamespaceRole
  - `other_namespace` string, required
  - `role` string, required

## Response `200`

Successful Response

- APIAckResponse
  - `message` string, nullable
  - `status` 'ok' | 'error', required

## Other responses

- `422`: Validation Error

## Changes

- **2024-11-26** `da5794d6a672`: 2 breaking
  - response property `message` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - the `status` response's property type changed from no type to `string` for status `200`
- **2024-08-29** `72805cdb69bc`: 1 info
  - endpoint added
- **2024-03-15** `6642d3ed3fab`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/conda-incubator/apis/conda-store/changes/api/v1/namespace/:namespace/role/post.md)

---

[API](https://skmtc.dev/conda-incubator/apis/conda-store.md) - [All operations](https://skmtc.dev/conda-incubator/apis/conda-store/llms.txt) - [OpenAPI document](https://skmtc.dev/conda-incubator/apis/conda-store/revisions/1045c7d5b017?raw)
