---
title: "Create a new SessionRecurrenceGroup"
method: POST
path: "/shop/recurrence-groups"
tags: ["SessionRecurrenceGroups"]
---

# Create a new SessionRecurrenceGroup

`POST /shop/recurrence-groups`

This endpoint creates a new `SessionRecurrenceGroup` for a `SessionType`.

## Request body

- CreateSessionRecurrenceGroup
  - `name` string — An option name for the recurrence group.
  - `practitioner_id` string, object-id — The practitioner who leads the sessions in this group.
  - `room_id` string, object-id — The room where the sessions in this group take place.
  - `weekdays` string[] — The weekdays sessions in this group take place.
  - `start_time` string — The start time of each occurrence in this group, in 24 hour format.
  - `start_times` object[]
    - `value` string, required
  - `capacity` integer — The capacity of each session in this group.
  - `recurrence_start` string, date, nullable — The start date of the recurrence group.
  - `recurrence_end` string, date, nullable — The end date of the recurrence group.
  - `session_type_id` string, object-id, required — The `SessionType` that this `SessionRecurrenceGroup` belongs to.

## Response `201`

The recurrence group was successfully created.

- object
  - `data` SessionRecurrenceGroup, required — A `SessionRecurrenceGroup` object
    - `capacity` integer, required — The capacity of each session in this group.
    - `deleted_at` string, date-time, nullable, required — A timestamp of when the this was deleted.
    - `id` string, object-id, required — The ID of the recurrence group.
    - `name` string, required — An option name for the recurrence group.
    - `practitioner` PractitionerSummary — The summary of a `Practitioner` object
      - `id` string, object-id, required — The ID of the practitioner.
      - `name` string, required — The full name of the practitioner.
    - `recurrence_end` string, date, nullable, required — The end date of the recurrence group.
    - `recurrence_start` string, date, nullable, required — The start date of the recurrence group.
    - `room` RoomSummary, required — The summary of a `Room` object
      - `id` string, object-id, required — The ID of the room.
      - `capacity` integer, required
      - `name` string, required — The name of the room.
    - `session_type_id` string, object-id, required — The ID of the `SessionType` this `SessionRecurrenceGroup` belongs to.
    - `start_time` string, nullable, required — The start time of each occurrence, in 24 hour format
    - `start_times` object[], required — An array of start times
      - `id` string, object-id, required — The ID of the start time
      - `value` string, required — The start time of each occurrence, in 24 hour format
    - `weekdays` string[], required — The weekdays this rule applies to

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `422` — The request didn't pass validation

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
