Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
objectId | string (uuid) | Yes | Unique identifier for the object |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | Type of action: update, transfer, repair, report_stolen |
name | string | No | Updated object name |
description | string | No | Updated description |
summary | string | No | Updated summary |
owner | string | No | New owner (required for transfer action) |
eventDescription | string | No | Description of the event being recorded |
performedBy | string | No | Person or system performing the action |
metadata | object | No | Updated metadata as key-value pairs |
Response
Action Types
| Action | Description | Required Fields |
|---|---|---|
update | General information update | None (optional fields as needed) |
transfer | Change ownership | owner |
repair | Record repair/maintenance | eventDescription recommended |
report_stolen | Mark as stolen | eventDescription recommended |
Error Responses
| Status Code | Description |
|---|---|
| 400 | Invalid request data or missing required fields |
| 401 | Unauthorized - invalid API key |
| 404 | Object not found |
| 500 | Internal server error |
Usage Notes
- All updates create new blockchain events for audit trail
- The
actionfield determines the type of update being performed - Use
transferaction when changing ownership - Metadata updates are merged with existing metadata
- Each update increments the
eventCountin blockchain information - Updates are immutable once recorded on the blockchain