Set Character

This endpoint allows you to set a user's currently selected character in the CAD.

This API endpoint requires the plus version of Sonoran CAD or higher. For more information, see our pricing page.

Get Characters

POST https://api.sonorancad.com/civilian/set_character

This endpoint allows you to set a user's currently selected character in the CAD.

Request Body

NameTypeDescription

id

string

Your community's ID

key

string

Your community's API Key

type

string

GET_CHARACTERS

data

array

Array of character objects

// Array of custom record character objects
[]
{
    "id": "YOUR_COMMUNITY_ID",
    "key": "YOUR_API_KEY",
    "type": "SET_CHARACTER",
    "data": [
        {
            "apiId": "STEAM:1234", // API ID, Typically, this is their STEAM Hex
            "charId": 123, // ID of character, matches the GET_CHARACTERS result - either the `id` or `syncId` depending on whether or not DB sync is enabled
        },
    ]
}

Last updated