Overview / System / Delete a role

Delete a role

delete https://api.flactrum.com/v1/roles/{role}

A role still assigned to users cannot be deleted; they would be left with no rights.

Required scope roles.write
Success status204

Parameters

NameInTypeDescription
role * path string ULID of the record.

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X DELETE 'https://api.flactrum.com/v1/roles/01m43mzqy0ntafnza900bb9ra8' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Accept: application/json'

HTTP 204

(empty body)