Revoke permission
documentedRemove a permission from a role.
DELETE /api/v2/roles/{role_id}/permissionsRolesno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.datadoghq.com/api/v2/roles/{{$role_id}}/permissions" \
-X DELETE \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-d '{"data": {"type": "permissions", "id": "{{$permission_id}}"}}'