Skip to main content

Create platform role

Creates a platform wide role. It can be used to grant permissions to all the resources in a Frontier instance.

Request Body required
    name string
    permissions string[]
    metadata object
    title string
    scopes string[]
Responses

A successful response.


Schema
    role object
    id string
    name string
    permissions string[]
    title string
    metadata object
    created_at date-time

    The time the role was created.

    updated_at date-time

    The time the role was last updated.

    org_id string
    state string
    scopes string[]
POST /v1beta1/roles

Authorization

name: Basic type: httpdescription: use Client ID as username and Client Secret as passwordin: headerscheme: basic

Request

Base URL
http://127.0.0.1:7400
Security Scheme
Username
Password
Body required
{
"name": "string",
"permissions": [
"string"
],
"metadata": {},
"title": "string",
"scopes": [
"string"
]
}
curl / cURL
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/roles' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"permissions": [
"string"
],
"metadata": {},
"title": "string",
"scopes": [
"string"
]
}'