Base URL
https://{tenant}.logzi.com/api/worksheet_priority/
Every request returns a JSON response. On success result.code == 1; on failure result.code == 0. The worksheet priority API is used to manage the freely definable worksheet priorities, with language-specific names and a color. A priority is assigned to a worksheet with the worksheet_priority_id field (Worksheet API).
/api/worksheet_priority/get
Retrieve a single worksheet priority record by ID.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Priority identifier | |
language_id | int | Language identifier for the name |
Response fields
| Field | Type | Description |
|---|---|---|
id | int | Priority identifier |
name | string | Name in the requested language |
name_key | string | Translation key |
color | string|null | Color in #RRGGBB format |
sort_order | int | Sort order |
remove | int | Deleted flag (0 / 1) |
language_id | int | Language identifier |
Example request
GET /api/worksheet_priority/get?id=1&language_id=1
X-API-KEY: {your_api_key}
/api/worksheet_priority/get_all
Retrieve the names of a priority in all languages (for editing).
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Priority identifier (0 or empty: empty language list for a new record) |
Example request
GET /api/worksheet_priority/get_all?id=1
X-API-KEY: {your_api_key}
/api/worksheet_priority/list
Retrieve the list of worksheet priorities in the given language, ordered by sort order. Deleted items are not included.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
language_id | int | Language identifier |
Example request
GET /api/worksheet_priority/list?language_id=1
X-API-KEY: {your_api_key}
/api/worksheet_priority/save
Create or update a worksheet priority. If data[id] is 0 or empty, a new record is created.
POST fields - data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Priority identifier (0 or empty = new) | |
name_key | string | Translation key, max. 50 characters. For a new record use a unique key, e.g. s_db_wsprio_<32 character md5> | |
data[<language_id>] | string | Name per language (at least 2 characters) | |
color | string | Color in #RRGGBB format. An empty or invalid value is not saved (NULL) | |
sort_order | int | Sort order (default: 0) |
Example request
POST /api/worksheet_priority/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 0, "name_key": "s_db_wsprio_0f3c9a1b7d5e4c2a8b6d1e9f3a7c5b2d", "color": "#ef4444", "sort_order": 10, "data": { "1": "Sürgős", "2": "Urgent" } } }
/api/worksheet_priority/delete
Delete a worksheet priority (soft delete, the remove flag is set to 1).
POST fields - data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the priority to delete |
Example request
POST /api/worksheet_priority/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 1 } }
Create your account now,
pay later!