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
Parameter | Description | Type | Required |
---|---|---|---|
permissionId | The permissionId of the permission you want to add an implied permission for. | URL param | yes |
impliedPermissionId | The id of the permission you want to add to the permission specified by permissionId . | URL param | yes |
Request
- cURL
curl "https://api.warrant.dev/v1/permissions/edit-report/permissions/view-report" \
-X POST \
-H "Authorization: ApiKey YOUR_KEY"
# Class method
Response
{
"permissionId": "view-report"
}