---
title: "Create"
method: POST
path: "/api/experience/group"
tags: ["Experience"]
---

# Create

`POST /api/experience/group`

## Request

- Base URL: `https://api.lytics.io`
- URL: `https://api.lytics.io/api/experience/group`
- Auth: API key in header `Authorization`

Creates an Experience Group record.

__Required Fields__

- label

- class

__Note__: When creating a new Experience group you have the option of including either a set of nested Experiences or groups, not both, that belong to the new group. As a result, a prioritization record will be created in addition to each individual group or Experience itself being updated with the proper `parent_group_id` value. Likewise, passing an empty array __WILL REMOVE__ the ownership from the existing children. When no change is intended for nested Experiences or groups you should pass no value or null for both `experiences` and `child_groups`.

## Response `201`

Created

---

[API](https://skmtc.dev/lytics/apis/v1-lytics-api.md) - [All operations](https://skmtc.dev/lytics/apis/v1-lytics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lytics/apis/v1-lytics-api/revisions/339fd1d88486?raw)
