Smart Inventory Advanced
Advanced write operations for vendors, assets, and processes (ROPA).
Replace {type} with vendor, asset, or process. Replace {id} with the record uniqueId.
Set responsible department
Request body
Response
204 No Content on success.
Set responsible person
The record must already have a responsible department. The user must belong to that department.
Request body
responsiblePerson is the user's uniqueId from GET /company/users/list.
Response
204 No Content on success.
Set process approver
ROPA/process only.
Request body
Response
204 No Content on success.
Submit form answers
Submit answers for custom form fields on a record. Read field uniqueId values from GET .../item first.
Request body
{
"answers": [
{
"uniqueId": "fieldabc123",
"answer": ["Yes"]
},
{
"uniqueId": "fielddef456",
"answer": ["Processing is based on consent"]
}
]
}
answers— required array, at least one entryuniqueId— form field unique ID from the item responseanswer— always an array of strings (even for single-value fields)
Response
200 OK with empty body on success.
Example: assign owner to a process
# 1. List departments
curl -X GET https://api.trustview.eu/external/company/departments/list \
-H "X-API-Key: tvw_sk_live_your_key_here"
# 2. Set department
curl -X POST https://api.trustview.eu/external/smart-inventory/process/6a054b8b9ae1a/responsible-department \
-H "X-API-Key: tvw_sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"departmentUniqueId": "dept123"}'
# 3. List users
curl -X GET https://api.trustview.eu/external/company/users/list \
-H "X-API-Key: tvw_sk_live_your_key_here"
# 4. Set responsible person
curl -X POST https://api.trustview.eu/external/smart-inventory/process/6a054b8b9ae1a/responsible-person \
-H "X-API-Key: tvw_sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"responsiblePerson": "a1b2c3d4e5f6"}'