Skip to main content

Create a Role

Create a new role.

POST /v1/roles

Parameters

ParameterDescriptionTypeRequired
roleIdA string identifier for this new role. The roleId can only be composed of lower-case alphanumeric chars and/or '-' and '_'.JSON bodyyes

Sample Request

POST /v1/roles
curl "https://api.warrant.dev/v1/roles" \
-X POST \
-H "Authorization: ApiKey YOUR_KEY" \
--data-raw \
'{
"roleId": "customer-success"
}'

Sample Response

{
"roleId": "customer-success"
}