---
title: "Associate Facilities with a Group"
method: POST
path: "/v2/groups/{id}/associate-facilities"
tags: ["v2/groups"]
---

# Associate Facilities with a Group

`POST /v2/groups/{id}/associate-facilities`

## Path parameters

- `id` string, required

## Headers

- `organization-id` string

## Request body

- AssociateFacilitiesV2Dto
  - `list` AssociateFacilityV2Dto[], required
    - `facilityId` string, required

## Response `201`

If all ids are associated successfully.

## Other responses

- `207` — If some of the IDs failed to be associated.
- `401` — Unauthorized if authorization token is not provided or invalid.
- `403` — Forbidden if user access is not right.
- `404` — If org-entity with the id is not found.

---

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