---
title: "Get sub-group by ID"
method: GET
path: "/admin/sub-groups/{id}"
tags: ["Task Sub-Groups"]
---

# Get sub-group by ID

`GET /admin/sub-groups/{id}`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/admin/sub-groups/{id}`
- Auth: HTTP bearer

Get a single task sub-group by ID with details

## Path parameters

- `id` string, uuid, required

## Response `200`

Sub-group retrieved successfully

- object
  - `success` boolean
  - `data` TaskSubGroupWithDetails
    - `id` string, uuid: Unique identifier
    - `phase_id` string, uuid: Parent phase ID
    - `name` string: Sub-group name
    - `description` string, nullable: Description of the sub-group
    - `cohort_status` 'draft' | 'in_design' | 'in_prep' | 'live' | 'wrap_up', nullable: Cohort status this sub-group maps to for phase progression
    - `sort_order` integer: Display order within phase
    - `is_active` boolean: Whether the sub-group is active
    - `is_archived` boolean: Whether the sub-group is archived
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `phase_name` string: Name of the parent phase
    - `phase_slug` string: Slug of the parent phase
    - `template_count` integer: Number of templates in this sub-group

## Other responses

- `401`: Unauthorized
- `404`: Sub-group not found

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
