---
title: "Get time slot usage information"
method: GET
path: "/cohorts/{cohortId}/time-slots/{timeSlotId}/usage"
tags: ["TimeSlots"]
---

# Get time slot usage information

`GET /cohorts/{cohortId}/time-slots/{timeSlotId}/usage`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{cohortId}/time-slots/{timeSlotId}/usage`
- Auth: none declared

Returns usage information for a time slot to inform deletion confirmation dialog

## Path parameters

- `cohortId` string, uuid, required
- `timeSlotId` string, uuid, required

## Response `200`

Usage information

- object
  - `success` boolean
  - `data` object
    - `isAssignedToGroup` boolean: Whether the time slot is assigned to a scheduled group session
    - `availabilityRequestCount` integer: Number of availability requests that reference this time slot
    - `canDelete` boolean: Whether the time slot can be deleted (false if assigned to a group)

## Other responses

- `401`: Unauthorized
- `404`: Cohort or time slot 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)
