---
title: "Check if cohort name or short name is available"
method: GET
path: "/cohorts/check-availability"
tags: ["Cohorts"]
---

# Check if cohort name or short name is available

`GET /cohorts/check-availability`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/check-availability`
- Auth: HTTP bearer

Case-insensitive uniqueness check for cohort name and/or short name

## Query parameters

- `name` string
- `short_name` string

## Response `200`

Availability checked

- object
  - `success` boolean
  - `data` object
    - `nameAvailable` boolean
    - `shortNameAvailable` boolean

## Other responses

- `401`: Unauthorized

---

[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)
