HealthKareAI
Clinic-App
appointments
Create

Create Appointment API Endpoint

POST /appointments/create

This endpoint allows for the creation of a new appointment record.

Authorization

This endpoint requires user authentication. Ensure the request includes the necessary authentication headers to verify the user.

Request Body

FieldTypeDescription
familyIDStringThe unique identifier for the family
statusStringThe status of the appointment (e.g., "pending")

Responses

200 OK

Successfully created the appointment.

Response Body:

{
  "data": "Appointment creation data"
}

401 Unauthorized

The request lacks valid authentication credentials.

Response Body:

{
  "error": "Unauthorized"
}

405 Method Not Allowed

Required fields are missing in the request body.

Response Body:

{
  "error": "Fields missing!"
}

500 Internal Server Error

An unexpected error occurred.

Response Body:

{
  "error": "Error message"
}