Create Call
This endpoint allows you to create a call that is sent to the call board of all units.
This endpoint requires any ImperialCAD subscription.
CreateCall(data, callback)
POST https://imperialcad.app/api/1.1/wf/createcall
Request Body
Name
Type
Description
users_discordID
string
Caller's name
street
string
Street name
crossStreet
string
Cross street
postal
string
Postal
city
string
City of Call
county
string
County of Call
info
string
Call information
nature
string
Short title for Call
status
string
Status of Call
priority
number
Priority
exports["ImperialCAD"]:CreateCall({
users_discordID = "123456789012345678",
street = "Broadway",
crossStreet = "5th St",
postal = "309",
city = "Los Santos",
county = "Blaine",
info = "Disturbance reported",
nature = "Disturbance",
status = "PENDING",
priority = 2
}, function(success, res)
print(success and "Call created." or ("Failed: " .. res))
end){
"status": "success",
"response": {
"callId": "F9G8H7I6J5",
"callnum": 204
}
}Last updated
Was this helpful?