Wiki Navigation

API Reference
CRUD Operations

Global Variables API

Manage global economy variables for your DayZ server (globals.xml). Control spawn rates, cleanup times, and other core economy parameters.

Authentication required: All endpoints require a valid Bearer token. See Authentication for details.

GET

List Global Variables

Retrieve a paginated list of global variables for an instance.

Endpoint

GET /api/instance/{instance_sid}/cfg-global

Parameters

like string

Filter variables by name using partial match.

Response

{
  "current_page": 1,
  "data": [
    {
      "id": 1,
      "sid": "abc123",
      "name": "CleanupLifetimeDeadPlayer",
      "type": 0,
      "value": "3600"
    },
    {
      "id": 2,
      "sid": "def456",
      "name": "SpawnInitial",
      "type": 0,
      "value": "1200"
    }
  ],
  "per_page": 30,
  "total": 25
}
GET

Get Global Variable

Retrieve a specific global variable by SID.

Endpoint

GET /api/instance/{instance_sid}/cfg-global/{global_sid}
POST

Create Global Variable

Create a new global variable for an instance.

Endpoint

POST /api/instance/{instance_sid}/cfg-global

Request Body

name required

Variable name (e.g., SpawnInitial)

type required

0=int, 1=float, 2=string

value required

The variable value

PATCH

Update Global Variable

PATCH /api/instance/{instance_sid}/cfg-global/{global_sid}

Update an existing global variable's name, type, or value.

DELETE

Delete Global Variable

DELETE /api/instance/{instance_sid}/cfg-global/{global_sid}

Permanently delete a global variable.

Common Global Variables

SpawnInitial

Initial spawn count on server start

CleanupLifetimeDeadPlayer

Dead body cleanup time (seconds)

CleanupLifetimeRuined

Ruined item cleanup time

IdleModeCountdown

Time before idle mode activates