---
title: "Set compatibility group"
method: PUT
path: "/groups/{groupId}/artifacts/{artifactId}/contract/compatibility-group"
tags: ["Contracts"]
---

# Set compatibility group

`PUT /groups/{groupId}/artifacts/{artifactId}/contract/compatibility-group`

Sets the compatibility group for the artifact's contract.

## Request body

- object
  - `contractId` string, required
  - `compatibilityGroup` string, required

## Response `204`

Compatibility group updated.

## Other responses

- `400` — Common response for all operations that can return a `400` error.
- `404` — Common response for all operations that can return a `404` error.
- `500` — Common response for all operations that can fail with an unexpected server error.

---

[API](https://skmtc.net/apicurio/apis/apicurio-registry-api-v3.md) · [All operations](https://skmtc.net/apicurio/apis/apicurio-registry-api-v3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apicurio/apicurio-registry-api-v3/revisions/c39cb56d7dbc/schema)
