Skip to Content
ReferenceAPIAppointmentsCreate an appointment

Appointments API

Create an appointment

Create an appointment in the current workspace.

POST/v1/appointments
capability appointments.create · v1health dataserver-scoped workspace

Request

Path, query, and JSON body fields accepted by this operation.

  • patientIdstring<uuid>required
    body
  • practitionerIdstring<uuid>required
    body
  • startsAtstring<date-time>required
    body
  • durationMinutesintegerrequired
    bodymin 5max 480
  • reasonstring | null
    bodydefault nullmax length 240

Response

Successful responses use Dawn's data envelope.

  • dataAppointmentrequired
    • idstring<uuid>required
    • workspaceIdstring<uuid>required
    • patientIdstring<uuid>required
    • practitionerIdstring<uuid>required
    • startsAtstring<date-time>required
    • endsAtstring<date-time>required
    • status"scheduled" | "checked_in" | "in_progress" | "completed" | "cancelled" | "no_show"required
    • reasonstring | nullrequired
      max length 240
    • createdAtstring<date-time>required
    • updatedAtstring<date-time>required
  • metaobject

Errors

Error responses use the shared error envelope.

  • 403Scheduling is disabled or unavailable.
  • 409The requested appointment time is unavailable.
  • 422The appointment details are invalid.
  • 503The appointment could not be saved.
Last updated on