Skip to content

Update part

PATCH
/api/v1/parts/{part_id}
curl --request PATCH \
--url https://app.ayna.com/api/v1/parts/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "part_name": "example", "manufacturer": "example", "model": "example", "serial_number": "example", "purchase_date": "2026-04-15", "installation_date": "2026-04-15", "removal_date": "2026-04-15", "total_cycles": 1, "total_hours": 1, "max_cycles": 1, "max_hours": 1, "last_inspection_date": "2026-04-15", "next_inspection_due": "2026-04-15", "status": "example", "health_status": "example", "notes": "example", "specifications": {} }'

Update a part.

part_id
required
Part Id
string
Media typeapplication/json
PartUpdateRequest
object
part_name
Any of:
string
<= 255 characters
manufacturer
Any of:
string
<= 100 characters
model
Any of:
string
<= 100 characters
serial_number
Any of:
string
<= 100 characters
purchase_date
Any of:
string format: date
installation_date
Any of:
string format: date
removal_date
Any of:
string format: date
total_cycles
Any of:
integer
total_hours
Any of:
number
max_cycles
Any of:
integer
max_hours
Any of:
number
last_inspection_date
Any of:
string format: date
next_inspection_due
Any of:
string format: date
status
Any of:
string
health_status
Any of:
string
notes
Any of:
string
specifications
Any of:
object
key
additional properties
any

Example generated

{
"part_name": "example",
"manufacturer": "example",
"model": "example",
"serial_number": "example",
"purchase_date": "2026-04-15",
"installation_date": "2026-04-15",
"removal_date": "2026-04-15",
"total_cycles": 1,
"total_hours": 1,
"max_cycles": 1,
"max_hours": 1,
"last_inspection_date": "2026-04-15",
"next_inspection_due": "2026-04-15",
"status": "example",
"health_status": "example",
"notes": "example",
"specifications": {}
}

OK

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}