/hardware/byserial/:serial
Changed onGet the details of a specific asset by asset tag
get/hardware/byserial/{serial}
Request
- Base URLhttps://develop.snipeitapp.com/api/v1
- URLhttps://develop.snipeitapp.com/api/v1/hardware/byserial/{serial}
- Authnone required
Path parameters
serialstring required
The serial number (not the ID) of the asset you'd like to query
Query parameters
deletedboolean
true | false to include deleted items in your results
Response
200
Example response
{
"id": 1,
"asset_tag": "389658657",
"serial": "b9b47837-13d9-33d3-a7d3-815a8503be44",
"model": {
"id": 1,
"name": "Macbook Pro 13""
},
"model_number": "4929525240061",
"status_label": {
"id": 1,
"name": "Deployed",
"status_meta": "deployed"
},
"category": {
"id": 1,
"name": "Laptops"
},
"manufacturer": {
"id": 1,
"name": "Apple"
},
"supplier": {
"id": 1,
"name": "Harvey-Hettinger"
},
"notes": "Created by DB seeder",
"order_number": "4243135",
"location": {
"id": 3,
"name": "Tonystad"
},
"rtd_location": {
"id": 1,
"name": "Lake Catharineburgh"
},
"assigned_to": {
"id": 1,
"username": "admin",
"name": "Admin User",
"first_name": "Admin",
"last_name": "User",
"employee_number": "19135",
"type": "user"
},
"created_at": {
"datetime": "2017-10-18 21:00:08",
"formatted": "Wed Oct 18, 2017 9:00PM"
},
"updated_at": {
"datetime": "2017-10-19 07:57:37",
"formatted": "Thu Oct 19, 2017 7:57AM"
},
"purchase_date": {
"date": "2016-12-03",
"formatted": "Sat Dec 03, 2016"
},
"last_checkout": {
"datetime": "2017-10-05 08:30:20",
"formatted": "Thu Oct 05, 2017 8:30AM"
},
"expected_checkin": {
"date": "2017-11-03",
"formatted": "Fri Nov 03, 2017"
},
"purchase_cost": "1114.86",
"available_actions": {
"checkout": true,
"checkin": true,
"clone": true,
"update": true,
"delete": true
}
}Changes
- info
endpoint added
- info