Create asset maintenance
snipeit_create_maintenanceSchedule or record a maintenance event for a Snipe-IT asset by submitting the asset ID, maintenance type, title, and start date.
Instructions
POST /maintenances: schedule or record a maintenance event. Required: asset_id, asset_maintenance_type, title, start_date (YYYY-MM-DD). title is sent as both 'name' (Snipe-IT 8.x) and 'title' (older servers). Note: supplier_id is required by the Snipe-IT 8.2.0 API; pass it unless your server accepts it missing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | Cost of the maintenance | |
| notes | No | ||
| title | Yes | Short title / description of the maintenance event | |
| confirm | No | Required when SNIPEIT_CONFIRM_WRITES=true. Exact string "YES" to apply this write. | |
| asset_id | Yes | ID of the asset being maintained | |
| start_date | Yes | Start date in YYYY-MM-DD format | |
| supplier_id | No | ID of the supplier carrying out the maintenance (required by the Snipe-IT 8.2.0 API) | |
| completion_date | No | Completion date in YYYY-MM-DD format | |
| asset_maintenance_type | Yes | Maintenance type, one of 'Maintenance', 'Repair', 'PAT Test', 'Upgrade', 'Hardware Support', 'Software Support' |