Skip to content

Update maintenance record

PATCH
/api/v1/maintenance/{record_id}
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.

record_id
required
Record Id
string
Media typeapplication/json
MaintenanceUpdateRequest
object
title
Any of:
string
>= 1 characters <= 200 characters
description
Any of:
string
priority
Any of:
string
scheduled_date
Any of:
string format: date
performed_date
Any of:
string format: date
cost
Any of:
number
notes
Any of:
string

Example generated

{
"title": "example",
"description": "example",
"priority": "example",
"scheduled_date": "2026-04-15",
"performed_date": "2026-04-15",
"cost": 1,
"notes": "example"
}

OK

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}