The Classname API allows you to manage item classnames for your DayZ server instances. Classnames are the unique identifiers for items in the game.
Note: All API requests require authentication. See the Authentication page for details.
Retrieve a paginated list of classnames for a specific instance.
GET /api/instance/{instance_sid}/classname
Parameter | Type | Description |
---|---|---|
instance_sid
|
string | The SID of the instance |
Parameter | Type | Description |
---|---|---|
page
|
integer | Page number for pagination (default: 1) |
amount
|
integer | Number of items per page (default: 30) |
like
|
string | Filter classnames by name (partial match) |
Retrieve details of a specific classname.
GET /api/instance/{instance_sid}/classname/{classname_sid}
Parameter | Type | Description |
---|---|---|
instance_sid
|
string | The SID of the instance |
classname_sid
|
string | The SID of the classname |
Create a new classname for an instance.
POST /api/instance/{instance_sid}/classname
Parameter | Type | Description |
---|---|---|
instance_sid
|
string | The SID of the instance |
Parameter | Type | Required | Description |
---|---|---|---|
name
|
string | Required | Name of the classname |
mod_id
|
integer | Optional | ID of the mod |
category_id
|
integer | Required | ID of the category |
subcategory_id
|
integer | Optional | ID of the subcategory |
has_image
|
boolean | Optional | Whether the classname has an image |
has_stats
|
boolean | Optional | Whether the classname has stats |
Update an existing classname.
PATCH /api/instance/{instance_sid}/classname/{classname_sid}
Parameter | Type | Description |
---|---|---|
instance_sid
|
string | The SID of the instance |
classname_sid
|
string | The SID of the classname |
Include any of the fields from the Create Classname endpoint that you want to update.
Delete a classname.
DELETE /api/instance/{instance_sid}/classname/{classname_sid}
Parameter | Type | Description |
---|---|---|
instance_sid
|
string | The SID of the instance |
classname_sid
|
string | The SID of the classname |