Skip to main content
PATCH
Updates one of the account’s own custom roles on the Management API host (api.scanova.io), authenticated with your raw Management API key.
integer
required
The role’s id.
Both PUT and PATCH are supported (PUT for a full replace, PATCH for a partial update) and accept the same name/permissions fields documented for Create a custom role.

System roles can’t be edited here

Only the account’s own custom roles (is_custom: true) are writable through this endpoint — a pk belonging to a system role (or another account’s custom role) returns 404, the same as one that doesn’t exist at all.

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: 401f7ac837da42b97f613d789819ff93537bee6a. 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

Body

application/json
name
string
permissions
integer[]

Response

Role updated.