/maintenances/:id
Changed onDelete a maintenance
delete/maintenances/{id}
Request
- Base URLhttps://develop.snipeitapp.com/api/v1
- URLhttps://develop.snipeitapp.com/api/v1/maintenances/{id}
- Authnone required
Path parameters
idstring required
Maintenance ID
Response
200
Example response
{
"status": "success",
"messages": "The asset maintenance was deleted successfully.",
"payload": {
"id": 1,
"asset_id": 1,
"supplier_id": 1,
"asset_maintenance_type": "Maintenance",
"title": "deleteo",
"start_date": "2022-11-16T08:00:00.000000Z",
"deleted_at": "2022-11-15T17:25:48.000000Z",
"created_at": "2022-11-15T17:25:17.000000Z",
"updated_at": "2022-11-15T17:25:48.000000Z",
"user_id": 1,
"asset": {
"id": 1,
"asset_tag": "893278223",
"model_id": 1,
"serial": "c65ac2b6-bad7-34ef-86d0-b2f9b4abb83f",
"purchase_date": "2022-01-19T08:00:00.000000Z",
"purchase_cost": "551.40",
"order_number": "19494754",
"notes": "Created by DB seeder",
"user_id": 1,
"created_at": "2022-11-15T16:42:06.000000Z",
"updated_at": "2022-11-15T16:42:37.000000Z",
"physical": 1,
"status_id": 1,
"supplier_id": 3,
"requestable": 1,
"rtd_location_id": 4,
"location_id": 4
}
}
}Changes
- info
endpoint added
- info