Instance Resources
Type Presets
Reusable type value presets that can be applied in bulk.
6
Endpoints
GET
POST
PUT
DELETE
Methods
Read/write
Access
Base path
/api/v1/instances/{instance}/presets
Route parameters
Pass public sid values for these route parameters.
{instance}
{typePreset}
Example request
curl -X GET 'https://beta.dzconfig.com/api/v1/instances/{instance}/presets?per_page=10' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR_API_TOKEN'
Endpoints
| Method | Path | Purpose |
|---|---|---|
| GET |
/api/v1/instances/{instance}/presets
|
List presets |
| POST |
/api/v1/instances/{instance}/presets
|
Create a preset |
| GET |
/api/v1/instances/{instance}/presets/{typePreset}
|
Get preset details |
| PUT |
/api/v1/instances/{instance}/presets/{typePreset}
|
Update a preset |
| DELETE |
/api/v1/instances/{instance}/presets/{typePreset}
|
Delete a preset |
| POST |
/api/v1/instances/{instance}/presets/{typePreset}/apply
|
Apply preset to matching types |
Query parameters
| Parameter | Type | Description |
|---|---|---|
page |
integer | Page number. Defaults to 1. |
per_page |
integer | Items per page. Values are clamped from 1 to 100. |
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
title |
string | required | Preset title |
category_id |
integer | optional | Filter by category |
tag_id |
integer | optional | Tag to apply |
nominal |
integer | optional | Nominal value |
lifetime |
integer | optional | Lifetime in seconds |
restock |
integer | optional | Restock time |
min |
integer | optional | Minimum count |
usage_ids |
array | optional | Array of usage IDs |
value_ids |
array | optional | Array of value IDs |
Example response
{
"data": {
"id": 10,
"sid": "zA6bCd",
"instance_id": 1,
"title": "Military Weapons",
"enabled": true,
"nominal": 8,
"lifetime": 7200,
"restock": 1800,
"min": 4,
"category_id": 1,
"tag_id": 1,
"created_at": "2026-02-01T12:00:00.000000Z",
"updated_at": "2026-04-10T09:30:00.000000Z"
}
}
Paginated list shape
{
"data": [
{
"sid": "abc123xy",
"...": "resource fields"
}
],
"links": {
"first": "https://beta.dzconfig.com/api/v1/instances/{instance}/presets?page=1",
"last": "https://beta.dzconfig.com/api/v1/instances/{instance}/presets?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"per_page": 10,
"total": 1
}
}
Status codes
| Code | Label | Description |
|---|---|---|
200
|
OK | Returned for successful reads, updates, and deletes. |
201
|
Created | Returned when a POST creates a resource. |
401
|
Unauthorized | Missing or invalid bearer token. |
403
|
Forbidden | Your plan or permissions do not allow this action. |
404
|
Not found | The route parameter did not match an accessible resource. |
413
|
Storage limit exceeded | Storing the file would exceed your plan's upload count, generated count, or total storage cap. |
422
|
Validation error | Request fields failed validation. |
429
|
Rate limited | Too many API requests in a short period. |