---
title: "Update a time slot"
method: PUT
path: "/cohorts/{cohortId}/time-slots/{timeSlotId}"
tags: ["TimeSlots"]
---

# Update a time slot

`PUT /cohorts/{cohortId}/time-slots/{timeSlotId}`

## Request

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

Updates day, time, or timezone (identifier and slot_number are immutable)

## Path parameters

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

## Request body

- UpdateTimeSlotRequest
  - `day_of_week` 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday'
  - `time` string
  - `timezone` string

## Response `200`

Time slot updated

- object
  - `success` boolean
  - `data` TimeSlot
    - `id` string, uuid
    - `cohort_id` string, uuid
    - `identifier` string: Auto-generated identifier (e.g., BCAP08-TS1)
    - `slot_number` integer: Sequential slot number (1, 2, 3...)
    - `day_of_week` 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday'
    - `time` string: Time in HH:MM:SS format
    - `timezone` string: IANA timezone (e.g., America/New_York)
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `message` string

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