Skip to content
Dashboard
Theme
Theme

Delete a role and its assignments

DELETE /v1/authorization/roles/{role}: Delete a role and its assignments.

View Markdown

DELETE /v1/authorization/roles/{role}

Scope
authorization:write
Auth
Secret key (sk_…)
Since
1.0
  • role string Required

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

Errors share one shape; see the error code catalogue.

curl -X DELETE \
"https://api.ohauthcat.com/v1/authorization/roles/role_01J9Z3K5V7W8X9Y0Z1A2B3C4D5" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY"

Response 204: no body.