Skip to main content
POST
Edit a unit

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

Unit ID. Argus record identifier.

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

Body

application/json
callsign
string
required

Trimmed and stored in capitals. Unique across units.

Required string length: 1 - 24
Pattern: ^[a-zA-Z0-9 -]+$
agencyCode
string
required

Trimmed and stored in capitals, for example MET, LAS or LFB.

Required string length: 1 - 24
Pattern: ^[a-zA-Z0-9_-]+$
type
enum<string>
required
Available options:
RESPONSE,
PATROL,
TRAFFIC,
FIRE,
AMBULANCE,
SUPERVISOR,
SPECIALIST
crew
string[]
required

Argus user IDs, never typed names. Each must be active staff and not crewed elsewhere. Empty means the unit is off duty.

Maximum array length: 8

Argus record identifier.

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

The version you last read. A mismatch returns 409.

Required range: x >= 1

Response

Success.

data
object
required