/maintenances
Changed onList asset maintenances
get/maintenances
Request
- Base URLhttps://develop.snipeitapp.com/api/v1
- URLhttps://develop.snipeitapp.com/api/v1/maintenances
- Authnone required
Query parameters
limitinteger
Number of results to return
offsetinteger
Offset to use when retrieving results (useful in pagination)
searchstring
Search string
sortstring
Field to order by
orderstring
Sort order (asc or desc)
asset_idinteger
Asset ID of the asset you'd like to return maintenances for
Response
200
Example response
{
"total": 2,
"rows": [
{
"id": 2,
"asset": {
"id": 1,
"name": "Test Name",
"asset_tag": "02948"
},
"title": "Test with all fields",
"location": {
"id": 3,
"name": "East Pollyville"
},
"notes": "This is a test",
"supplier": {
"id": 3,
"name": "Effertz, Langworth and Prohaska"
},
"cost": "100.00",
"asset_maintenance_type": "Repair",
"start_date": {
"datetime": "2018-03-06 00:00:00",
"formatted": "Tue Mar 06, 2018 12:00AM"
},
"asset_maintenance_time": 20,
"completion_date": {
"datetime": "2018-03-26 00:00:00",
"formatted": "Mon Mar 26, 2018 12:00AM"
},
"user_id": {
"id": 2,
"name": "Snipe E. Head"
},
"created_at": {
"datetime": "2018-03-26 17:43:35",
"formatted": "Mon Mar 26, 2018 5:43PM"
},
"updated_at": {
"datetime": "2018-03-26 17:43:35",
"formatted": "Mon Mar 26, 2018 5:43PM"
},
"available_actions": {
"update": true,
"delete": true
}
}
]
}Changes
- info
endpoint added
- info