Skip to main content
PATCH
Replace a role

Authorizations

__Host-argus-session
string
cookie
required

The opaque session cookie set by Discord sign-in. Named argus-session outside production. HttpOnly, so scripts cannot read it; same-origin requests send it automatically. Requests other than GET must also carry an Origin header equal to the application's own origin.

Path Parameters

id
string
required

Role ID. Argus record identifier.

Required string length: 1 - 64
Pattern: ^[a-zA-Z0-9_-]+$

Body

application/json
name
string
required
Required string length: 2 - 60
permissions
enum<string>[]
required
Maximum array length: 32

An Argus permission key.

Available options:
cad.unit.self,
cad.view,
cad.dispatch,
cad.incidents.create,
cad.incidents.manage,
cad.units.manage,
cad.calls.manage,
server.view,
players.view,
players.lookup,
sessions.view,
sessions.manage,
shifts.view,
shifts.manage,
staff.view,
staff.manage,
moderation.view,
moderation.warn,
moderation.kick,
moderation.ban,
moderation.history,
audit.view,
admin.manage,
civilians.create,
civilians.manage_own,
civilians.manage,
pnc.view,
pnc.records.manage,
pnc.licences.manage,
pnc.warrants.manage,
pnc.markers.manage,
pnc.vehicles.manage

Response

Success.

data
object
required