Skip to main content

Add an Implied Permission

Add an implied permission. Note that both the implied permission being added and the permission the implied permission is being added to must already exist. Refer to the documentation to create a permission for help.

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 Warrant endpoint instead.

Endpoint

POST /v1/permissions/:permissionId/permissions/:impliedPermissionId

Parameters

ParameterDescriptionTypeRequired
permissionIdThe permissionId of the permission you want to add an implied permission for.URL paramyes
impliedPermissionIdThe id of the permission you want to add to the permission specified by permissionId.URL paramyes

Request

curl "https://api.warrant.dev/v1/permissions/edit-report/permissions/view-report" \
-X POST \
-H "Authorization: ApiKey YOUR_KEY"

Response

{
"permissionId": "view-report"
}