---
title: "Update customer prescription"
method: PATCH
path: "/v2/customers/{id}/prescriptions/{prescriptionId}"
tags: ["Customers.Prescriptions"]
---

# Update customer prescription

`PATCH /v2/customers/{id}/prescriptions/{prescriptionId}`

## Request

- Base URL: `https://api.carecycle.ai`
- URL: `https://api.carecycle.ai/v2/customers/{id}/prescriptions/{prescriptionId}`
- Auth: API key in header `x-api-key`

Change a prescription on a customer's record.

## Path parameters

- `id` string, uuid, required: Customer ID
- `prescriptionId` string, uuid, required: Prescription ID

## Request body

- PatchV2CustomersIdPrescriptionsPrescriptionIdRequestBody
  - `customerId` string, uuid
  - `name` string, nullable
  - `dosage` string, nullable
  - `frequency` string, nullable
  - `route` 'Oral' | 'Topical' | 'Injection' | 'Inhalation' | 'Sublingual' | 'Rectal' | 'Intravenous' | 'null', nullable
  - `status` 'Active' | 'Expired' | 'Discontinued' | 'null', nullable
  - `connectureDrugId` string, nullable
  - `connectureDosageId` string, nullable
  - `connecturePackageId` string, nullable
  - `ndc` string, nullable
  - `dosageName` string, nullable
  - `drugTypeId` integer, nullable
  - `userQuantity` number, nullable
  - `metricQuantity` number, nullable
  - `daysSupply` integer, nullable
  - `packageDescription` string, nullable
  - `packageSize` number, nullable
  - `packageQuantity` number, nullable

## Response `200`

PATCH /v2/customers/:id/prescriptions/:prescriptionId Positive response

- PatchV2CustomersIdPrescriptionsPrescriptionIdPositiveResponse
  - `id` string, uuid, required
  - `createdAt` string, date-time, nullable, required: Prescription creation time. ISO 8601 timestamp
  - `updatedAt` string, date-time, nullable, required: Prescription last update time. ISO 8601 timestamp
  - `customerId` string, uuid, required
  - `name` string, nullable, required
  - `dosage` string, nullable, required
  - `frequency` string, nullable, required
  - `route` 'Oral' | 'Topical' | 'Injection' | 'Inhalation' | 'Sublingual' | 'Rectal' | 'Intravenous' | 'null', nullable, required
  - `status` 'Active' | 'Expired' | 'Discontinued' | 'null', nullable, required
  - `connectureDrugId` string, nullable, required
  - `connectureDosageId` string, nullable, required
  - `connecturePackageId` string, nullable, required
  - `ndc` string, nullable, required
  - `dosageName` string, nullable, required
  - `drugTypeId` integer, nullable, required
  - `userQuantity` number, nullable, required
  - `metricQuantity` number, nullable, required
  - `daysSupply` integer, nullable, required
  - `packageDescription` string, nullable, required
  - `packageSize` number, nullable, required
  - `packageQuantity` number, nullable, required

## Other responses

- `400`: PATCH /v2/customers/:id/prescriptions/:prescriptionId Negative response 400
- `401`: PATCH /v2/customers/:id/prescriptions/:prescriptionId Negative response 401
- `403`: PATCH /v2/customers/:id/prescriptions/:prescriptionId Negative response 403
- `404`: PATCH /v2/customers/:id/prescriptions/:prescriptionId Negative response 404
- `409`: PATCH /v2/customers/:id/prescriptions/:prescriptionId Negative response 409
- `422`: PATCH /v2/customers/:id/prescriptions/:prescriptionId Negative response 422
- `429`: PATCH /v2/customers/:id/prescriptions/:prescriptionId Negative response 429
- `500`: PATCH /v2/customers/:id/prescriptions/:prescriptionId Negative response 500
- `502`: PATCH /v2/customers/:id/prescriptions/:prescriptionId Negative response 502
- `503`: PATCH /v2/customers/:id/prescriptions/:prescriptionId Negative response 503

---

[API](https://skmtc.dev/carecycle/apis/carecycle-public-api.md) - [All operations](https://skmtc.dev/carecycle/apis/carecycle-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/carecycle/apis/carecycle-public-api/revisions/db390c743c36?raw)
