Skip to main content

Data Structures

This page documents the data structures used by PR exports and API payloads.


Page Request (Server)

Used by:

request.addresses
request.players
request.nature
request.body

string[]

List of capcodes/addresses to send the page to.

Example: { "emg.fire.bc", "emg.ems.bc" }


Local Page Request (Client)

Used by:

request.nature
request.body

PageNature as lowercase string or enum number

The page type/nature.

Example: administrative or 2


Page Nature

Used by:

nature
  • emergency or 0
  • nonemergency or 1
  • administrative or 2
tip

Even if the nature types are renamed in the language file, they will still need to be written as above. If you plan to rename the natures, we suggest using the enum values to avoid confusion.