Add an Implied Role
Add an implied role. Note that both the implied role being added and the role the implied role is being added to must already exist. Refer to the documentation to create a role 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/roles/:roleId/roles/:impliedRoleId
Parameters
Parameter | Description | Type | Required |
---|---|---|---|
roleId | The roleId of the role you want to add an implied role for. | URL param | yes |
impliedRoleId | The id of the role you want to add to the role specified by roleId . | URL param | yes |
Request
- cURL
curl "https://api.warrant.dev/v1/roles/admin/roles/viewer" \
-X POST \
-H "Authorization: ApiKey YOUR_KEY"
# Class method
Response
{
"roleId": "viewer"
}