---
title: "Create a new RBAC Role Endpoint"
method: POST
path: "/{workspace}/rbac/roles/{RBACRoleIdForNestedEntities}/endpoints"
tags: ["RBACRoleEndpoints"]
---

# Create a new RBAC Role Endpoint

`POST /{workspace}/rbac/roles/{RBACRoleIdForNestedEntities}/endpoints`

Create a new RBAC Role Endpoint

## Path parameters

- `workspace` string, required

## Request body

- RBACRoleEndpoint
  - `actions` string[], required
  - `comment` string, nullable — Additional comment or description for the RBAC role endpoint.
  - `created_at` integer, nullable — Unix epoch when the resource was created.
  - `endpoint` string, nullable, required — The endpoint associated with the RBAC role.
  - `negative` boolean, nullable — Indicates whether the RBAC role has negative permissions for the endpoint.
  - `role` object, nullable — The RBAC role associated with the endpoint.
    - `id` string
  - `updated_at` integer, nullable — Unix epoch when the resource was last updated.
  - `workspace` string, nullable — The workspace associated with the endpoint.
  - `role_id` string, nullable

## Response `201`

Successfully created RBAC Role Endpoint

- RBACRoleEndpoint
  - `actions` string[], required
  - `comment` string, nullable — Additional comment or description for the RBAC role endpoint.
  - `created_at` integer, nullable — Unix epoch when the resource was created.
  - `endpoint` string, nullable, required — The endpoint associated with the RBAC role.
  - `negative` boolean, nullable — Indicates whether the RBAC role has negative permissions for the endpoint.
  - `role` object, nullable — The RBAC role associated with the endpoint.
    - `id` string
  - `updated_at` integer, nullable — Unix epoch when the resource was last updated.
  - `workspace` string, nullable — The workspace associated with the endpoint.
  - `role_id` string, nullable

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/kong/apis/kong-enterprise-admin-api.md) · [All operations](https://skmtc.net/kong/apis/kong-enterprise-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kong/kong-enterprise-admin-api/revisions/28b1f8a59cdc/schema)
