---
title: "Applies a feature group to a relation type"
method: POST
path: "/api/v1/feature-groups/{featureGroupId}/apply"
tags: ["Feature Groups"]
---

# Applies a feature group to a relation type

`POST /api/v1/feature-groups/{featureGroupId}/apply`

This endpoint applies a feature group to the provided list based on the relationType.</br>Required scope: `feature-groups:write` </br>Organization authorization: `supported`</br>This endpoint is feature-flagged and will only be available to operators who have the feature enabled.

## Path parameters

- `featureGroupId` integer, required

## Request body

- CreateFeatureGroup
  - `relationType` 'team', required
  - `ids` integer[], required — List of IDs that the feature group should be applied to. If one of the IDs does not belong to your operator, applying feature group will fail. Therefore, make sure all the Ids belong to your operator.

## Response `204`

Successfully created feature group relation

## Other responses

- `400` — The request is invalid
- `401` — Consumer with provided credentials was not found
- `403` — Operator doesn't have access to resource
- `404` — Entity with the provided id was not found

---

[API](https://skmtc.net/monta/apis/monta-partner-api.md) · [All operations](https://skmtc.net/monta/apis/monta-partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/monta/monta-partner-api/revisions/517e18f11015/schema)
