The Instance API allows you to manage your DayZ server instances. You can list, create, view, update, and delete instances.
Note: All API requests require authentication. See the Authentication page for details.
Retrieve a paginated list of all your instances.
GET /api/instance
Parameter | Type | Description |
---|---|---|
page
|
integer | Page number for pagination (default: 1) |
amount
|
integer | Number of items per page (default: 30) |
like
|
string | Filter instances by name (partial match) |
Retrieve details of a specific instance.
GET /api/instance/{instance_sid}
Parameter | Type | Description |
---|---|---|
instance_sid
|
string | The SID of the instance |
Create a new instance.
POST /api/instance
Parameter | Type | Required | Description |
---|---|---|---|
name
|
string | Required | Name of the instance |
map_id
|
integer | Required | ID of the map |
ip
|
string | Optional | IP address of the server |
port
|
integer | Optional | Game port of the server |
query_port
|
integer | Optional | Query port of the server |
hostname
|
string | Optional | Hostname for FTP/SFTP connection |
connection_port
|
integer | Optional | Port for FTP/SFTP connection |
username
|
string | Optional | Username for FTP/SFTP connection |
password
|
string | Optional | Password for FTP/SFTP connection |
is_sftp
|
boolean | Optional | Whether to use SFTP instead of FTP |
dir
|
string | Optional | Directory path on the server |
use_vanilla_classnames
|
boolean | Optional | Whether to use vanilla classnames |
use_types_config
|
boolean | Optional | Whether to use types config |
Update an existing instance.
PATCH /api/instance/{instance_sid}
Parameter | Type | Description |
---|---|---|
instance_sid | string | The SID of the instance |
Include any of the fields from the Create Instance endpoint that you want to update.
Delete an instance.
DELETE /api/instance/{instance_sid}
Parameter | Type | Description |
---|---|---|
instance_sid | string | The SID of the instance |