Record maintenance
Attach a service event to equipment the caller can access.
Requires maintenance:submit, and the organization must be the manufacturer or current custodian. The event does not move custody and is not a credential.
1. Request URL
POST https://api.medicaltrace.net/v1/maintenance
2. Request parameters
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
Authorization | header | Yes | string | Bearer token from POST /auth/login. The sample value demo.local.jwt is a placeholder. |
X-Organization-Id | header | Yes | string | Manufacturer or current custodian. Demo Hospital after acceptance. |
equipmentId | body | Yes | string | Equipment the event belongs to. |
eventType | body | Yes | string | Kind of service event. |
summary | body | Yes | string | Short description. This is not a certificate. |
occurrenceAt | body | Yes | string | When the work is said to have occurred, in ISO-8601. |
evidenceRefs | body | No | string[] | References to evidence held by the submitting organization. |
3. Request example
curl -s -X POST 'https://api.medicaltrace.net/v1/maintenance' \
-H 'content-type: application/json' \
-H 'authorization: Bearer demo.local.jwt' \
-H 'x-organization-id: 22222222-2222-4222-8222-222222222222' \
-d '{"equipmentId":"44444444-4444-4444-8444-444444444444","eventType":"annual_service","summary":"Demo annual service for DEMO-BED-001","occurrenceAt":"2026-01-15T15:00:00.000Z","evidenceRefs":["svc_demo_bed_001_2026"]}'4. Response data
HTTP 201. The body below uses the fictional DEMO-BED-001 fixtures.
{
"id": "99999999-9999-4999-8999-999999999999",
"equipmentId": "44444444-4444-4444-8444-444444444444",
"organizationId": "22222222-2222-4222-8222-222222222222",
"eventType": "annual_service",
"summary": "Demo annual service for DEMO-BED-001",
"occurrenceAt": "2026-01-15T15:00:00.000Z",
"evidenceRefs": [
"svc_demo_bed_001_2026"
]
}5. Response fields
| Field | Type | Description | Example |
|---|---|---|---|
organizationId | string | Organization that submitted the event. | 22222222-2222-4222-8222-222222222222 |
eventType | string | Stored event type. | annual_service |
occurrenceAt | string | Asserted time of the work, distinct from the time the API received it. | 2026-01-15T15:00:00.000Z |