Wiki Navigation

Subcategory API Endpoints

The Subcategory API allows you to manage item subcategories for your DayZ server instances. Subcategories provide a more detailed organization of items within categories.

Note: All API requests require authentication. See the Authentication page for details.

List Subcategories

Retrieve a paginated list of subcategories for a specific instance.

Request

GET /api/instance/{instance_sid}/subcategory

URL Parameters

Parameter Type Description
instance_sid string The SID of the instance

Query Parameters

Parameter Type Description
page integer Page number for pagination (default: 1)
amount integer Number of items per page (default: 30)
like string Filter subcategories by name (partial match)

Response

Get Subcategory

Retrieve details of a specific subcategory.

Request

GET /api/instance/{instance_sid}/subcategory/{subcategory_sid}

URL Parameters

Parameter Type Description
instance_sid string The SID of the instance
subcategory_sid string The SID of the subcategory

Response

Create Subcategory

Create a new subcategory for an instance.

Request

POST /api/instance/{instance_sid}/subcategory

URL Parameters

Parameter Type Description
instance_sid string The SID of the instance

Request Body

Parameter Type Required Description
name string Yes Name of the subcategory
category_id integer Yes ID of the parent category

Response

Update Subcategory

Update an existing subcategory.

Request

PATCH /api/instance/{instance_sid}/subcategory/{subcategory_sid}

URL Parameters

Parameter Type Description
instance_sid string The SID of the instance
subcategory_sid string The SID of the subcategory

Request Body

Parameter Type Required Description
name string No New name of the subcategory
category_id integer No New parent category ID

Response

Delete Subcategory

Delete a subcategory.

Warning: Deleting a subcategory will also delete all classnames associated with it. This action cannot be undone.

Request

DELETE /api/instance/{instance_sid}/subcategory/{subcategory_sid}

URL Parameters

Parameter Type Description
instance_sid string The SID of the instance
subcategory_sid string The SID of the subcategory

Response