Handle logs
APIaction: API.logs.retrieve
Description: Retrieve all logs for a specific building, unit, or land item
Notes:
APIactionModes: building
Description: /
Notes: /
Data in this request:
required format: "JSON"
required variables: {
"APIaction": "API.logs.retrieve",
"APIactionModes": [
"building"
],
"build_ref": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 30,
"default": null,
"type": "string",
"description": "The reference for the building"
}
}optional variables: {
"pagination_current_page": {
"minimum": 0,
"maximum": 99999,
"NULL allowed": false,
"min_length": 1,
"max_length": 5,
"default": 1,
"type": "integer",
"description": ""
},
"pagination_per_page": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 1,
"max_length": 5,
"default": "all",
"type": "string",
"description": "",
"accepted items": "25, 50, 100, 500, all"
},
"pagination_order": {
"minimum": 0,
"maximum": 99999,
"NULL allowed": false,
"min_length": 1,
"max_length": 5,
"default": "desc",
"type": "string",
"description": "Ascending or descending results",
"accepted items": "asc, desc"
}
}Subscription required for this mode:
"none"
Example output of this request:
{
"success": true,
"type": "api call",
"data": [
{
"build_ref": "b_350891a7d0f700f74362e25d6cc3",
"unit_ref": null,
"buildlog_ref": "blg_f0406f97a9b2cc8f06aa8f660bb289af779206e04e96632c1449fa857c5a9e3af62ac1eec668",
"buildlog_is_deletable": 1,
"buildlog_title": "test",
"buildlog_text": "test",
"buildlog_type": "user",
"buildlog_category": "user input",
"buildlog_date": "2026-10-11",
"buildlog_related_task_ref": null,
"buildlog_creator_name": "gniewrabhaoeanade",
"buildlog_creation_date": "2026-11-24 13 =>28 =>11",
"buildlog_date_last_change": "2026-11-24 13 =>28 =>11",
"unit_name": "/"
}
],
"message": "Logs retrieved",
"pagination": {
"pagination_total_records": 1,
"pagination_total_pages": 1,
"pagination_current_page": 1,
"pagination_per_page": 50,
"pagination_has_previous": false,
"pagination_has_next": false,
"pagination_order": "desc"
}
}APIactionModes: unit
Description: /
Notes: /
Data in this request:
required format: "JSON"
required variables: {
"APIaction": "API.logs.retrieve",
"APIactionModes": [
"unit"
],
"build_ref": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 30,
"default": null,
"type": "string",
"description": "The reference for the building"
},
"unit_ref": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 40,
"default": null,
"type": "string",
"description": "The reference for this unit"
}
}optional variables: {
"pagination_current_page": {
"minimum": 0,
"maximum": 99999,
"NULL allowed": false,
"min_length": 1,
"max_length": 5,
"default": 1,
"type": "integer",
"description": ""
},
"pagination_per_page": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 1,
"max_length": 5,
"default": "all",
"type": "string",
"description": "",
"accepted items": "25, 50, 100, 500, all"
},
"pagination_order": {
"minimum": 0,
"maximum": 99999,
"NULL allowed": false,
"min_length": 1,
"max_length": 5,
"default": "desc",
"type": "string",
"description": "Ascending or descending results",
"accepted items": "asc, desc"
}
}Subscription required for this mode:
"none"
Example output of this request:
{
"success": true,
"type": "api call",
"data": [
{
"build_ref": "b_350891a7d0f700f74362e25d6cc3",
"unit_ref": null,
"buildlog_ref": "blg_f0406f97a9b2cc8f06aa8f660bb289af779206e04e96632c1449fa857c5a9e3af62ac1eec668",
"buildlog_is_deletable": 1,
"buildlog_title": "test",
"buildlog_text": "test",
"buildlog_type": "user",
"buildlog_category": "user input",
"buildlog_date": "2026-10-11",
"buildlog_related_task_ref": null,
"buildlog_creator_name": "gniewrabhaoeanade",
"buildlog_creation_date": "2026-11-24 13 =>28 =>11",
"buildlog_date_last_change": "2026-11-24 13 =>28 =>11",
"unit_name": "/"
}
],
"message": "Logs retrieved",
"pagination": {
"pagination_total_records": 1,
"pagination_total_pages": 1,
"pagination_current_page": 1,
"pagination_per_page": 50,
"pagination_has_previous": false,
"pagination_has_next": false,
"pagination_order": "desc"
}
}APIaction: API.logs.edit
Description: Add or edit a log. To edit, just provide the buildlog_ref of the existing log item
Notes:
APIactionModes: building
Description: /
Notes: /
Data in this request:
required format: "JSON"
required variables: {
"APIaction": "API.logs.edit",
"APIactionModes": [
"building"
],
"build_ref": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 30,
"default": null,
"type": "string",
"description": "The reference for the building"
},
"buildlog_date": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 20,
"default": null,
"type": "string",
"description": ""
},
"buildlog_title": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 150,
"default": null,
"type": "string",
"description": ""
},
"buildlog_text": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 250,
"default": null,
"type": "string",
"description": ""
}
}optional variables: {
"buildlog_ref": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 80,
"default": null,
"type": "string",
"description": "The reference for this log item"
}
}Subscription required for this mode:
"none"
Example output of this request:
{
"success": false,
"type": "api call",
"data": "blg_f0406f97a9b2cc8f06aa8f660bb289af779206e04e96632c1449fa857c5a9e3af62ac1eec668",
"message": "Log item successfully edited."
}APIactionModes: unit
Description: /
Notes: /
Data in this request:
required format: "JSON"
required variables: {
"APIaction": "API.logs.edit",
"APIactionModes": [
"unit"
],
"build_ref": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 30,
"default": null,
"type": "string",
"description": "The reference for the building"
},
"unit_ref": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 40,
"default": null,
"type": "string",
"description": "The reference for this unit"
},
"buildlog_date": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 20,
"default": null,
"type": "string",
"description": ""
},
"buildlog_title": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 150,
"default": null,
"type": "string",
"description": ""
},
"buildlog_text": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 250,
"default": null,
"type": "string",
"description": ""
}
}optional variables: {
"buildlog_ref": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 80,
"default": null,
"type": "string",
"description": "The reference for this log item"
}
}Subscription required for this mode:
"none"
Example output of this request:
{
"success": false,
"type": "api call",
"data": "blg_f0406f97a9b2cc8f06aa8f660bb289af779206e04e96632c1449fa857c5a9e3af62ac1eec668",
"message": "Log item successfully edited."
}APIaction: API.logs.delete
Description: Delete a specific log item
Notes:
APIactionModes: default
Description: /
Notes: /
Data in this request:
required format: "JSON"
required variables: {
"APIaction": "API.logs.delete",
"APIactionModes": [
"default"
],
"build_ref": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 30,
"default": null,
"type": "string",
"description": "The reference for the building"
},
"buildlog_ref": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 80,
"default": null,
"type": "string",
"description": "The reference for this log item"
}
}optional variables: []
Subscription required for this mode:
"none"
Example output of this request:
{
"success": false,
"type": "api call",
"data": {
"success": true,
"type": "api call",
"data": "blg_f0406f97a9b2cc8f06aa8f660bb289af779206e04e96632c1449fa857c5a9e3af62ac1eec668",
"message": "Log item successfully deleted."
}
}