Skip to main content
PUT
/
mdts
/
{mdtId}
/
units
/
active
Upsert active units (bulk)
curl --request PUT \
  --url https://api.northca.dev/v1/mdts/{mdtId}/units/active \
  --header 'Content-Type: application/json' \
  --header 'x-discord-guild: <x-discord-guild>' \
  --header 'x-partner-key: <api-key>' \
  --data '
{
  "units": [
    {
      "id": "ADAM-12",
      "officer_name": "B. Bubbleton",
      "officer_badge": "512",
      "department": "Patrol",
      "rank": "PO",
      "status": "10-8"
    },
    {
      "id": "LINCOLN-3",
      "officer_name": "A. Smith",
      "officer_badge": "144",
      "department": "Traffic",
      "rank": "SGT",
      "status": "10-7"
    }
  ]
}
'
"<unknown>"

Authorizations

x-partner-key
string
header
required

Partner API key provided by Northca.

Headers

x-discord-guild
string
required

Discord Guild ID (server/guild context for the request).

x-discord-actor
string

Discord User ID for the acting user (optional; used for audit fields).

Path Parameters

mdtId
string
required

MDT ID.

Body

application/json
units
object[]
required

Bulk upsert. Each unit must include a non-empty id. Duplicate ids within the same request are rejected.

Response

Upserted units.

The response is of type any.