Delete a Role
Delete a role by Id.
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 Delete Object endpoint instead.
Endpoint
DELETE /v1/roles/:roleId
Parameters
Parameter | Description | Type | Required |
---|---|---|---|
roleId | The roleId of the role you want to delete. | JSON body | yes |
Request
- cURL
- Go
- Java
- Node.js
- Python
- Ruby
- PHP
- CLI
curl "https://api.warrant.dev/v1/roles/role1" \
-X DELETE \
-H "Authorization: ApiKey YOUR_KEY" \
err := role.Delete("role1")
if err != nil {
// handle error
}
try {
client.deleteRole("role1");
} catch (WarrantException e) {
// Handle error
}
await warrantClient.Role.delete("role1");
warrant.Role.delete("role1")
Warrant::Role.delete("role1")
$warrant->deleteRole("role1");
warrant delete role role1
Response
200 OK