---
title: "Associate practitioner with a group"
method: PUT
path: "/practitioners/{practitionerId}/groups/{groupId}"
tags: ["Practitioner"]
---

# Associate practitioner with a group

`PUT /practitioners/{practitionerId}/groups/{groupId}`

Associates a practitioner with the specified group and returns the association details.

## Path parameters

- `groupId` string, required
- `practitionerId` string, required

## Headers

- `tenant-id` string, required

## Request body

- CreateTenantGroupPractitionerRequest
  - `data` TenantGroupPractitionerSchema — Represents the association of a practitioner with a tenant group.
    - `effectiveDate` string, date — The date when the practitioner's affiliation with the tenant group becomes effective.
    - `endDate` string, date — The date when the practitioner's affiliation with the tenant group ends.
    - `employmentType` string — The type of employment relationship the practitioner has with the tenant group.
    - `affiliationType` 'Delegated' | 'Direct' — Defines the possible affiliation types

## Response `200`

Successfully associated practitioner with group

- TenantGroupPractitionerResponse
  - `id` string
  - `tenantGroupId` string
  - `certifyPractitionerId` string
  - `tenantPractitionerId` string
  - `data` JsonNode
    - `empty` boolean
    - `valueNode` boolean
    - `containerNode` boolean
    - `missingNode` boolean
    - `array` boolean
    - `object` boolean
    - `nodeType` 'ARRAY' | 'BINARY' | 'BOOLEAN' | 'MISSING' | 'NULL' | 'NUMBER' | 'OBJECT' | 'POJO' | 'STRING'
    - `pojo` boolean
    - `number` boolean
    - `integralNumber` boolean
    - `floatingPointNumber` boolean
    - `short` boolean
    - `int` boolean
    - `long` boolean
    - `float` boolean
    - `double` boolean
    - `bigDecimal` boolean
    - `bigInteger` boolean
    - `textual` boolean
    - `boolean` boolean
    - `null` boolean
    - `binary` boolean

## Other responses

- `400` — Bad request - Invalid input
- `401` — Unauthorized - Authentication required
- `403` — Forbidden - Insufficient permissions
- `404` — Practitioner or group 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/3d27e9019c7b/schema)
