Skip to main content

Create a Permission

Create a new permission.

caution

This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the Create Object endpoint instead.

Endpoint

POST /v1/permissions

Parameters

ParameterDescriptionTypeRequired
permissionIdA string identifier for the permission. A permissionId must be composed of alphanumeric chars and/or _, -, ., @, |, and :.JSON bodyyes
nameAn optional, display-friendly name for the permission.JSON bodyno
descriptionAn optional description of the permission. A useful description might include a summary of the functionality the permission grants.JSON bodyno

Request

curl "https://api.warrant.dev/v1/permissions" \
-X POST \
-H "Authorization: ApiKey YOUR_KEY" \
--data-raw \
'{
"permissionId": "edit-dashboards",
"name": "Edit Dashboards",
"description": "Grants the user the ability to create and update custom analytics dashboards"
}'

Response

{
"permissionId": "edit-dashboards",
"name": "Edit Dashboards",
"description": "Grants the user the ability to create and update custom analytics dashboards"
}