Update maintenance record
PATCH
/api/v1/maintenance/{record_id}
const url = 'https://app.ayna.com/api/v1/maintenance/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"title":"example","description":"example","priority":"example","scheduled_date":"2026-04-15","performed_date":"2026-04-15","cost":1,"notes":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://app.ayna.com/api/v1/maintenance/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "title": "example", "description": "example", "priority": "example", "scheduled_date": "2026-04-15", "performed_date": "2026-04-15", "cost": 1, "notes": "example" }'Update a maintenance record.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”record_id
required
Record Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
MaintenanceUpdateRequest
object
Example generated
{ "title": "example", "description": "example", "priority": "example", "scheduled_date": "2026-04-15", "performed_date": "2026-04-15", "cost": 1, "notes": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}