Wiki Navigation

API Reference
Singleton Resource

Economy Core API

Manage economy core settings (cfgeconomycore.xml). Configure dynamic spawn parameters, logging options, and startup behaviors for the Central Economy system.

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

Singleton Resource

Economy Core is a singleton resource - each instance has only one economy core configuration. The POST and PATCH endpoints will create or update the existing configuration.

GET

Get Economy Core Settings

Retrieve the economy core configuration for a specific instance.

Endpoint

GET /api/instance/{instance_sid}/economy-core

URL Parameters

instance_sid
string required

The SID of the instance

Response

{
  "id": 1,
  "sid": "eco123",
  "instance_id": 1,
  "dyn_radius": 30,
  "dyn_smin": 0,
  "dyn_smax": 0,
  "dyn_dmin": 1,
  "dyn_dmax": 5,
  "log_ce_loop": 0,
  "log_ce_dynamicevent": 0,
  "log_ce_vehicle": 0,
  "log_ce_lootspawn": 0,
  "log_ce_lootcleanup": 0,
  "log_ce_lootrespawn": 0,
  "log_ce_statistics": 0,
  "log_ce_zombie": 0,
  "log_storageinfo": 0,
  "log_hivewarning": 1,
  "log_missionfilewarning": 1,
  "save_events_startup": 1,
  "save_types_startup": 1
}
POST PATCH

Create or Update Economy Core

Create or update the economy core configuration. Both POST and PATCH perform an upsert operation.

Endpoints

POST /api/instance/{instance_sid}/economy-core PATCH /api/instance/{instance_sid}/economy-core

Request Body - Dynamic Spawn Parameters

dyn_radius integer

Dynamic spawn radius (default: 30)

dyn_smin integer

Dynamic spawn minimum (default: 0)

dyn_smax integer

Dynamic spawn maximum (default: 0)

dyn_dmin integer

Dynamic despawn minimum (default: 1)

dyn_dmax integer

Dynamic despawn maximum (default: 5)

Request Body - Logging Options

log_ce_loop boolean

Log CE loop events

log_ce_dynamicevent boolean

Log dynamic events

log_ce_vehicle boolean

Log vehicle spawns

log_ce_lootspawn boolean

Log loot spawns

log_ce_lootcleanup boolean

Log loot cleanup

log_ce_lootrespawn boolean

Log loot respawns

log_ce_statistics boolean

Log CE statistics

log_ce_zombie boolean

Log zombie spawns

log_storageinfo boolean

Log storage info

log_hivewarning boolean

Log hive warnings (default: 1)

log_missionfilewarning boolean

Log mission file warnings (default: 1)

Request Body - Startup Options

save_events_startup boolean

Save events on startup (default: 1)

save_types_startup boolean

Save types on startup (default: 1)

Example Request

{
  "dyn_radius": 50,
  "dyn_dmax": 10,
  "log_ce_lootspawn": 1,
  "log_ce_statistics": 1
}
DELETE

Delete Economy Core

DELETE /api/instance/{instance_sid}/economy-core

Reset the economy core configuration to defaults by deleting the current settings.