Skip to main content
POST
Create a role

Authorizations

Authorization
string
header
required

Authorization: Bearer <token> where <token> is either a neo_sk_<env>_<secret> API key (service account) or a Microsoft Entra ID access token (dashboard user). A key created with scopes reaches only the permission groups they name, and gets 403 insufficient_scope elsewhere; GET /public-api/scopes lists them.

Body

application/json

A role create or update. On an update every field is optional and a field left out keeps its value; send description: null to clear it. An implicit role takes grants and unlisted_level only.

description
string | null
grants
Grants · object | null
name
string | null
unlisted_level
enum<string> | null
Available options:
NONE,
READ,
WRITE

Response

Success.

data
PublicRole · object
required
meta
object
required