MedicalTrace

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

ParameterInRequiredTypeDescription
AuthorizationheaderYesstringBearer token from POST /auth/login. The sample value demo.local.jwt is a placeholder.
X-Organization-IdheaderYesstringManufacturer or current custodian. Demo Hospital after acceptance.
equipmentIdbodyYesstringEquipment the event belongs to.
eventTypebodyYesstringKind of service event.
summarybodyYesstringShort description. This is not a certificate.
occurrenceAtbodyYesstringWhen the work is said to have occurred, in ISO-8601.
evidenceRefsbodyNostring[]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

FieldTypeDescriptionExample
organizationIdstringOrganization that submitted the event.22222222-2222-4222-8222-222222222222
eventTypestringStored event type.annual_service
occurrenceAtstringAsserted time of the work, distinct from the time the API received it.2026-01-15T15:00:00.000Z