Skip to main content
DELETE
Deletes one of the account’s own custom roles on api.scanova.io, authenticated with your raw API key.
integer
required
The role’s id.
A successful call returns 204 No Content.

Reassign teammates first

If the role is still assigned to any shared user, this returns a friendly 400 (not a raw database integrity error) asking you to reassign those teammates to a different role before deleting. As with update, a pk belonging to a system role or another account’s custom role returns 404.

Authorizations

Authorization
string
header
required

Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: YOUR_API_KEY. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.

Path Parameters

pk
integer
required

Response

Role deleted.