Get Schedules

Below filters are available for get schedules

  • teamID: String

  • scheduleIDs: [Int!]

  • participants: [String!]

  • escalationPolicies: [String!]

  • myOncall: Boolean

  • noEscalationPolicies: Boolean

  • search: String

  • limit: Int

  • offset: Int

query{
  schedules(filters:{
    teamID:"62442e4182c4725938208e11",
    scheduleIDs:[],
    participants:[],
    escalationPolicies:[],
    myOncall:false,
    noEscalationPolicies:false,
    search:"migrated",
    limit:1,
    offset:0
  }){
    ID
    orgID
    teamID
    name
    description
    timeZone
    paused
    owner {
      type
      ID
    }
    rotations {
      ID
      name
      color
      startDate
      period
      participantGroups {
        participants {
          type
          ID
        }
      }
      changeParticipantsUnit
      changeParticipantsFrequency
      endDate
      endsAfterIterations
    }
    escalationPolicies {
      ID
      name
    }
    overrides(from: $from, till: $till) {
      ID
      scheduleID
      startTime
      endTime
      reason
      overriddenParticipant {
        participants {
          ID
          type
        }
        everyone
      }
      overrideWith {
        participants {
          ID
          type
        }
      }
    }
  }
}

Response:

Last updated

Was this helpful?