Set Clock Time

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

Get Servers

POST https://api.sonorancad.com/general/set_clock

This endpoint allows you set the CAD's

Request Body

Name
Type
Description

id

string

Your community's ID

key

string

Your community's API Key

type

string

GET_SERVERS

data

array

Array of request objects

INVALID REQUEST TYPE
INVALID COMMUNITY ID
API IS NOT ENABLED FOR THIS COMMUNITY
INVALID API KEY
{
    "id": "YOUR_COMMUNITY_ID",
    "key": "YOUR_API_KEY",
    "type": "SET_CLOCK",
    "data": [
        {
            "serverId": 1, // Server ID
            "currentUtc": "01/30/2024 10:30", // Current time in UTC (January 30th, 2024 10:30AM)
            "currentGame": "01/30/2024 10:30", // Current in-game time at the UTC timestamp
            "secondsPerHour": 60 // 60 seconds (1 minute) equals 1 game hour 
        }
    ]
}

Last updated