---
title: "Batch add and update group specialties"
method: PATCH
path: "/groups/{id}/specialties"
tags: ["Group"]
---

# Batch add and update group specialties

`PATCH /groups/{id}/specialties`

Adds new and/or updates existing group specialties in a single request. Updates modify existing TenantGroupSpecialty records while additions create new specialty associations.

## Path parameters

- `id` string, required

## Headers

- `tenant-id` string

## Request body

- ManageGroupSpecialtiesRequest
  - `updates` UpdateSpecialtyItem1[] — Existing specialties to update
    - `tenantGroupSpecialtyId` string, required — ID of the existing TenantGroupSpecialty record to update
    - `newTenantSpecialtyId` string — ID of the new TenantSpecialty to replace the current one
    - `effectiveDate` string — New effective date in YYYY-MM-DD format
    - `isPrimary` boolean — Whether this specialty is primary
    - `atLeastOneFieldProvided` boolean
  - `additions` AddSpecialtyItem1[] — New specialties to add
    - `tenantSpecialtyId` string, required — ID of the tenant specialty to associate
    - `effectiveDate` string — Effective date in YYYY-MM-DD format
    - `isPrimary` boolean — Whether this specialty is primary
  - `changeReason` string — Optional reason for change, applied to all operations

## Response `200`

Group specialties successfully managed

- ManageGroupSpecialtiesResponse
  - `updatedSpecialties` JsonNode[] — Results from updated specialty records
    - `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
  - `addedSpecialties` JsonNode[] — Results from newly added specialty associations
    - `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
  - `errors` SpecialtyNotCreated[] — Operations that failed, empty when all succeeded
    - `level` 'GROUP' | 'LOCATION' | 'NETWORK_GROUP' | 'NETWORK_LOCATION', required
    - `reason` 'MISSING_DEPENDENCY' | 'DOWNSTREAM_ERROR' | 'CONFLICT' | 'VALIDATION_ERROR', required
    - `message` string, required — User-facing message explaining what went wrong and how to fix it

## Other responses

- `400` — Invalid request body or missing required parameters
- `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/versions/3d27e9019c7b/schema)
