Skip to content

List asset assignment history

GET
/api/assets/{id}/assignments
curl --request GET \
--url http://localhost:3000/api/assets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/assignments \
--cookie session=<session>
id
required
string format: uuid

Success

Media type application/json
object
data
Array<object>
object
id
required
string format: uuid
assetId
required
string format: uuid
personId
string format: uuid
nullable
userId
string format: uuid
nullable
assignedAt
required
string format: date-time
returnedAt
string format: date-time
nullable
notes
string
nullable
personName
string
nullable
personEmail
string
nullable
Example generated
{
"data": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"assetId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"personId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"userId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"assignedAt": "2026-04-15T12:00:00Z",
"returnedAt": "2026-04-15T12:00:00Z",
"notes": "example",
"personName": "example",
"personEmail": "example"
}
]
}

Not authenticated

Media type application/json
object
error
required
string
Example
{
"error": "Not found"
}