---
title: "Get schedule"
method: GET
path: "/api/{cloudId}/v1/schedules/{id}"
tags: ["Schedules"]
---

# Get schedule

`GET /api/{cloudId}/v1/schedules/{id}`

Returns the details of the schedule with given id in the request. <br> <br> **Permissions required:** Permission to access to the schedule: 
 - the user has read-only administrative right. 
 - the schedule's assigned team is one of the teams that the user belongs to. 
 - the user is added to a rotation of the schedule as a responder. 
 - a team is added to a rotation of the schedule as a responder, and the user is a member of this team. 
 - an escalation is added to a rotation of the schedule as a responder, and the user is a member of this escalation. 
 - there is an override to the user in the schedule.

## Path parameters

- `id` string, required

## Response `200`

Returned if the request is successful.

- Schedule
  - `id` string — ID of the schedule.
  - `name` string — Name of the schedule.
  - `description` string — Description of the schedule.
  - `timezone` string — Time zone ID of the schedule.
  - `enabled` boolean — Indicates whether the schedule is enabled or not.
  - `teamId` string — ID of the team that schedule belongs to.
  - `rotations` Rotation[] — Rotation details of the schedule.
    - `id` string — ID of the rotation.
    - `name` string — Name of the rotation.
    - `startDate` string, date-time — Start time of the rotation.
    - `endDate` string, date-time — End time of the rotation.
    - `type` 'daily' | 'weekly' | 'hourly' — Type of the rotation.
    - `length` integer — Length of the rotation based on type.
    - `participants` ResponderInfo[] — List of participants of the rotation.
      - `type` 'user' | 'team' | 'escalation' | 'noone', required — Type of the responder.
      - `id` string — ID of the responder. Null if the type is `noone`.
    - `timeRestriction` union
      - TimeOfDayTimeRestriction
        - `type` string — Type of the time restriction.
        - `restriction` TimeOfDayTimeRestrictionSettings — Details of the time restriction. Returned if the type of the time restriction is `time-of-day`.
          - `startHour` integer — Start hour of the time restriction.
          - `endHour` integer — End hour of the time restriction.
          - `startMin` integer — Start minute of the time restriction.
          - `endMin` integer — End minute of the time restriction.
      - WeekdayTimeRestriction
        - `type` string — Type of the time restriction.
        - `restrictions` WeekdayTimeRestrictionSettings[] — Details of the time restriction. Returned if the type of the time restriction is `weekday-and-time-of-day`.
          - `startDay` 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday' — Start day of the time restriction.
          - `endDay` 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday' — End day of the time restriction.
          - `startHour` integer — Start hour of the time restriction.
          - `endHour` integer — End hour of the time restriction.
          - `startMin` integer — Start minute of the time restriction.
          - `endMin` integer — End minute of the time restriction.

## Other responses

- `401` — Returned if the authentication credentials are incorrect.
- `403` — Returned if the requesting user does not have permission to view the schedule.
- `404` — Returned if the schedule is not found.

---

[API](https://skmtc.net/atlassian/apis/jsm-operations-api.md) · [All operations](https://skmtc.net/atlassian/apis/jsm-operations-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/jsm-operations-api/versions/ed65f017bcb8/schema)
