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