Create Custom Dispatch Call
Create a dispatch call from a community-defined layout.
POST https://api.sonorancad.com/v2/emergency/servers/{serverId}/custom-dispatch-calls
Create a dispatch call using a configured template. Call GET /v2/emergency/dispatch-templates first and key values by each field's uid.
The status field value must be a status option id, not the canonical numeric status. Sonoran CAD maps that option to pending, active, or closed behavior. Priority is a normal customizable select field: submit the selected text exactly as it appears in that field's options array. Unit targets are supplied through the target properties and are snapshotted into the required units field. The normalized template and complete value dictionary are stored on the call, so later template edits do not change historical calls.
Path Parameters
serverId
integer
Configured Sonoran CAD server ID.
Request Body
templateId
integer
Yes
Template returned by the dispatch-template endpoint.
values
object
Yes
Field values keyed by template field uid. Unknown keys are rejected.
identIds
array of integers
Conditional
Active identifier IDs to attach. At least one valid unit target is required.
accountUuid
string (uuid)
Conditional
Account whose selected identifier is attached.
accounts
array of strings (uuid)
Conditional
Accounts whose selected identifiers are attached.
communityUserId
string
Conditional
One linked community user target.
communityUserIds
array of strings
Conditional
Linked community user targets.
roblox
string
Conditional
Linked Roblox target.
discord
string
Conditional
Linked Discord target.
notes
array
No
Initial call notes.
metaData
object
No
String metadata, including optional map coordinates.
deleteAfterMinutes
integer
No
Schedule automatic call deletion.
Example Request
Use this tab when calling the v2 API from the server side of an in-game FiveM resource.
Sonoran.lua and Sonoran.js: use the
sonorancadexport to get the configured CAD client.Sonoran.Net: read the protected Sonoran CAD convars and create a client.
Sonoran.py: FiveM does not run Python resources; use the Sonoran.py tab for external integrations.
Sonoran.lua
Sonoran.js
Sonoran.Net
Response
The response is the stored dispatch call. It includes canonical fields for existing integrations plus template, values, and statusId for the customized format.
Last updated
Was this helpful?

