---
title: "POST /mr-api/application/{appId}/feature-groups"
method: POST
path: "/mr-api/application/{appId}/feature-groups"
tags: ["FeatureGroupService"]
---

# POST /mr-api/application/{appId}/feature-groups

`POST /mr-api/application/{appId}/feature-groups`

Get feature groups for this application

## Request body

- FeatureGroupCreate — An update, everything is optional, we will only update what we update
  - `name` string, required — allow changing the name
  - `description` string
  - `environmentId` string, uuid, required — allow swapping the environment
  - `features` FeatureGroupUpdateFeature[], required — allow updating the features
    - `id` string, uuid, required
    - `value` unknown
  - `strategies` FeatureGroupStrategy[], nullable — We only honour the first one
    - `id` string — unique id for this strategy
    - `name` string, required — The strategy name
    - `percentage` integer — value between 0 and 1000000 - for four decimal places
    - `percentageAttributes` string[] — if you don't wish to apply percentage based on user id, you can use one or more attributes defined here
    - `attributes` RolloutStrategyAttribute[]
      - `conditional` 'EQUALS' | 'ENDS_WITH' | 'STARTS_WITH' | 'GREATER' | 'GREATER_EQUALS' | 'LESS' | 'LESS_EQUALS' | 'NOT_EQUALS' | 'INCLUDES' | 'EXCLUDES' | 'REGEX'
      - `fieldName` string
      - `values` RolloutStrategyArrayType[] — the value(s) associated with this rule
        - unknown
      - `type` 'STRING' | 'SEMANTIC_VERSION' | 'NUMBER' | 'DATE' | 'DATETIME' | 'BOOLEAN' | 'IP_ADDRESS'
      - `id` string — A temporary id used only when validating. Saving strips these out as they are not otherwise necessary

## Response `201`

Feature Group Created

- FeatureGroupListGroup
  - `id` string, uuid, required
  - `order` integer, required
  - `name` string, required
  - `description` string
  - `environmentName` string, required
  - `environmentId` string, uuid, required
  - `version` integer, required
  - `hasStrategy` boolean, required
  - `features` FeatureGroupListFeature[], required
    - `key` string, required

## Other responses

- `400` — bad request
- `401` — no permission
- `404` — no application
- `409` — duplicate

---

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