For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set Unit Status

Set status for one or more identifiers.

PATCH https://api.sonorancad.com/v2/emergency/servers/{serverId}/units/status

Rate limit: 30 requests per minute Authenticated v2 endpoints are rate limited per API key rather than per IP address.

Set a new unit status for one or more identifiers resolved by communityUserId, communityUserIds, roblox, discord, accountUuid, or identIds.

Path Parameters

Name
Type
Description

serverId

integer

Configured Sonoran CAD server ID.

Request Body

Use communityUserId or communityUserIds by default, or provide roblox, discord, accountUuid, or identIds.

Property
Type
Required
Description

communityUserId

string

No

Updates all active identifiers for one linked community user.

communityUserIds

array of strings

No

Updates all active identifiers for multiple linked community users.

roblox

integer

No

Updates all active identifiers for the account linked to the Roblox user ID.

discord

string

No

Updates all active identifiers for the account linked to the Discord user ID.

accountUuid

string (uuid)

No

Updates all active identifiers for the target account.

identIds

array of integers

No

Directly target one or more identifier IDs.

status

integer

Yes

Unit status enum. See UNIT_STATUS below.

{
  "communityUserIds": ["player-1234"],
  "status": 3
}

Example Request

Response

Successful requests return application/json.

Enumeration Values

UNIT_STATUS

Value
Description

0

UNAVAILABLE

1

BUSY

2

AVAILABLE

3

ENROUTE

4

ON_SCENE

100

OFFLINE

Last updated

Was this helpful?