Tags
API Methods¶
| Method | Action | Description |
|---|---|---|
add | add tag | Adds a custom tag to a server or component. Supports adding to a list of IDs via id_list. |
list | get tag list | Returns a list of all tags for the specified server or component. |
remove | remove tag | Removes a tag by name from the specified server or component. Supports removal by ID list. |
tags/add¶
Adds a custom tag to a server or component. Supports adding to a list of IDs via id_list.
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: add |
| token | ✅ | string | Authorization token |
| id | ❌ | int | Component (server) ID. Used if id_list is not provided |
| id_list | ❌ | string | Comma-separated list of component IDs for bulk addition |
| tag | ✅ | string | Tag name (alphanumeric characters and hyphens only, max 32 characters) |
| value | ❌ | string | Tag value (max 256 characters) |
| extra | ❌ | string | Additional tag data (max 16384 characters) |
| component | ❌ | string | Component type (default 'eq') |
| internal | ❌ | int | Internal tag flag (0 or 1) |
| no_log | ❌ | string | Logging disable flag (any value disables logging) |
Example Request
Example of a successful response
Failure response
{
"code": -1,
"message": "tag/add: invalid token data, too long",
"description": "Length of tag, value, or extra exceeds limits"
}
tags/list¶
Returns a list of all tags for the specified server or component.
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: list |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Component (server) ID |
| component | ❌ | string | Component type ('eq' or 'vars') |
| internal | ❌ | int | Show internal tags (0 or 1) |
Example Request
Example of a successful response
tags/remove¶
Removes a tag by name from the specified server or component. Supports removal by ID list.
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: remove |
| token | ✅ | string | Authorization token |
| id | ❌ | int | Component (server) ID |
| id_list | ❌ | string | Comma-separated list of component IDs |
| tag | ✅ | string | Tag name to remove |
| component | ❌ | string | Component type |
| internal | ❌ | int | Internal tag flag |
Example Request