Manage the movement of assets using the API. Retrieve a list of all asset movements, view a specific movement, and update an movement.
Learn more about assets in the OnLocation Help Center.
Returns a list of asset movements.
List of asset movements
Invalid Input
Access denied to this resource
Resource not found
curl -i -X GET \ 'https://api.whosonlocation.com/v1/assetmovement?q=string&limit=0'
[- {
- "asset_id": 1,
- "assigned_type": "staff",
- "assigned_staff_id": 1,
- "assigned_spm_id": 1,
- "assigned_visitor_id": 1,
- "signed_out": "2023-04-18 13:15:00",
- "signed_in": "2023-04-18 13:15:00",
- "dueback": "2023-05-01 13:15:07",
- "notes": "Notes about the asset movement",
- "issued_out": "10008",
- "issued_in": "20008"
}
]
Returns a single asset movement.
Asset movement data
Access denied to this resource
Asset movement not found
curl -i -X GET \ https://api.whosonlocation.com/v1/assetmovement/:id
{- "asset_id": 1,
- "assigned_type": "staff",
- "assigned_staff_id": 1,
- "assigned_spm_id": 1,
- "assigned_visitor_id": 1,
- "signed_out": "2023-04-18 13:15:00",
- "signed_in": "2023-04-18 13:15:00",
- "dueback": "2023-05-01 13:15:07",
- "notes": "Notes about the asset movement",
- "issued_out": "10008",
- "issued_in": "20008"
}
Updates the details of an asset movement.
Information used to update the asset movement record
Updated resource
Invalid Input
Access denied to this resource
Resource not found
Internal server error
{- "assigned_type": "staff",
- "assigned_staff_id": 1,
- "assigned_spm_id": 1,
- "assigned_visitor_id": 1,
- "dueback": "2023-05-01 13:10:00"
}
{- "asset_id": 1,
- "assigned_type": "staff",
- "assigned_staff_id": 1,
- "assigned_spm_id": 1,
- "assigned_visitor_id": 1,
- "signed_out": "2023-04-18 13:15:00",
- "signed_in": "2023-04-18 13:15:00",
- "dueback": "2023-05-01 13:15:07",
- "notes": "Notes about the asset movement",
- "issued_out": "10008",
- "issued_in": "20008"
}