---
title: "Remove a role from a practitioner-location record"
method: PATCH
path: "/practitioners/practitioner-locations/{id}/roles/remove"
tags: ["Practitioner"]
---

# Remove a role from a practitioner-location record

`PATCH /practitioners/practitioner-locations/{id}/roles/remove`

Removes a role key from the specified practitioner-location association record and from all associated location-network assignment records for that location. Use this to fully remove a role at the group-practitioner-location level; this is not a termination, it deletes the role key entirely. For terminating a role (setting a termination date) on a specific network assignment, use `PUT /practitioners/practitioner-role-assignments/{id}/terminate` instead. `{id}` is the GroupPractitionerLocation record identifier, and the role being removed must exist on the record. This endpoint does not apply the active-credentialing/monitoring-workflow guard used by `PUT /practitioners/terminate`.

## Path parameters

- `id` string, required

## Headers

- `tenant-id` string

## Request body

- RemovePractitionerRoleRequest
  - `role` 'PCP' | 'Specialist' | 'Hospitalist' | 'Hospital-based Provider', required — Role key to remove (will be normalized to lowercase)

## Response `200`

A `PractitionerRolesUpdateResponse` payload reflecting the role removal. `practitionerRoles` is always empty; `locationRoles` has a single entry keyed by `groupPractitionerLocationId`.

- PractitionerRolesUpdateResponse — Practitioner roles update response
  - `practitionerRoles` object — Updated practitioner roles map from core_practitioners
  - `locationRoles` object — Updated practitioner roles map from group_practitioner_locations, keyed by groupPractitionerLocationId

## Other responses

- `400` — Bad request - Invalid role or role not found on location
- `401` — Unauthorized - Authentication required
- `403` — Forbidden - Insufficient permissions
- `404` — Location not found
- `500` — Internal server error

---

[API](https://skmtc.net/certifyos/apis/certify-api-layer.md) · [All operations](https://skmtc.net/certifyos/apis/certify-api-layer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/certifyos/certify-api-layer/revisions/563848e0ecc0/schema)
