HealthKareAI
Clinic-App
prescriptions
Create

Create Prescription API Endpoint

POST /prescriptions/create

This endpoint allows for the creation of a new prescription 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
detailsStringDetails of the prescription

Responses

200 OK

Successfully created the prescription.

Response Body:

{
  "data": "Prescription 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"
}