hardware.php¶
Hardware management module for managing components, barcodes, storage lists, and hardware reports.
hardware/add_barcodes¶
Adds barcodes to hardware entities based on provided filters.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: add_barcodes |
| token | ✅ | string | Authentication token. |
Request example
hardware/delete_barcodes¶
Deletes a barcode associated with a specific entity ID.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: delete_barcodes |
| id | ❌ | integer | The ID of the entity for which to delete the barcode. |
Request example
hardware/list_barcodes¶
Returns a list of barcodes based on provided filters.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: list_barcodes |
| token | ✅ | string | Authentication token. |
Request example
Success response example
hardware/show_barcodes¶
Returns barcode information for a specific entity by its ID.
HTTP method: POST|GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: show_barcodes |
| id | ❌ | integer | The ID of the entity for which to show barcodes. |
Request example
hardware/update_barcodes¶
Updates barcode information for a specific entity or based on filtered criteria.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: update_barcodes |
| token | ✅ | string | Authentication token. |
| id | ❌ | integer | The ID of the entity to update barcodes for. |
Request example