---
title: "Update customer provider"
method: PATCH
path: "/v2/customers/{id}/providers/{providerId}"
tags: ["Customers.Providers"]
---

# Update customer provider

`PATCH /v2/customers/{id}/providers/{providerId}`

## Request

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

Change a doctor or other healthcare provider on a customer's record.

## Path parameters

- `id` string, uuid, required: Customer ID
- `providerId` string, uuid, required: Provider ID

## Request body

- PatchV2CustomersIdProvidersProviderIdRequestBody
  - `customerId` string, uuid
  - `providerType` 'Primary Care' | 'Specialist' | 'Hospital' | 'Pharmacy'
  - `specialty` string, nullable
  - `providerName` string, nullable
  - `practiceName` string, nullable
  - `npi` string, nullable
  - `phone` string, nullable
  - `fax` string, nullable
  - `email` string, nullable
  - `address` string, nullable
  - `address2` string, nullable
  - `city` string, nullable
  - `state` string, nullable
  - `postalCode` string, nullable
  - `isPrimaryProvider` boolean, nullable
  - `isActive` boolean, nullable
  - `notes` string, nullable
  - `connectureProviderId` string, nullable
  - `connectureAddressId` string, nullable
  - `isIndividual` boolean, nullable

## Response `200`

PATCH /v2/customers/:id/providers/:providerId Positive response

- PatchV2CustomersIdProvidersProviderIdPositiveResponse
  - `id` string, uuid, required
  - `createdAt` string, date-time, nullable, required: Provider creation time. ISO 8601 timestamp
  - `updatedAt` string, date-time, nullable, required: Provider last update time. ISO 8601 timestamp
  - `customerId` string, uuid, required
  - `providerType` 'Primary Care' | 'Specialist' | 'Hospital' | 'Pharmacy', required
  - `specialty` string, nullable, required
  - `providerName` string, nullable, required
  - `practiceName` string, nullable, required
  - `npi` string, nullable, required
  - `phone` string, nullable, required
  - `fax` string, nullable, required
  - `email` string, nullable, required
  - `address` string, nullable, required
  - `address2` string, nullable, required
  - `city` string, nullable, required
  - `state` string, nullable, required
  - `postalCode` string, nullable, required
  - `isPrimaryProvider` boolean, nullable, required
  - `isActive` boolean, nullable, required
  - `notes` string, nullable, required
  - `connectureProviderId` string, nullable, required
  - `connectureAddressId` string, nullable, required
  - `isIndividual` boolean, nullable, required

## Other responses

- `400`: PATCH /v2/customers/:id/providers/:providerId Negative response 400
- `401`: PATCH /v2/customers/:id/providers/:providerId Negative response 401
- `403`: PATCH /v2/customers/:id/providers/:providerId Negative response 403
- `404`: PATCH /v2/customers/:id/providers/:providerId Negative response 404
- `409`: PATCH /v2/customers/:id/providers/:providerId Negative response 409
- `422`: PATCH /v2/customers/:id/providers/:providerId Negative response 422
- `429`: PATCH /v2/customers/:id/providers/:providerId Negative response 429
- `500`: PATCH /v2/customers/:id/providers/:providerId Negative response 500
- `502`: PATCH /v2/customers/:id/providers/:providerId Negative response 502
- `503`: PATCH /v2/customers/:id/providers/:providerId 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)
