Create Rotation

Create Rotation without Participants Group

mutation {
  createRotation(
    scheduleID: 001,
    input:{
        name:"Daily 24x7",
        startDate:"2023-05-09T00:00:00Z",
        period:daily,
        changeParticipantsFrequency:1,
        changeParticipantsUnit:day
      }
    }){
      ID,
      scheduleID,
      name,
      color,
      startDate,
      period,
      changeParticipantsFrequency,
      changeParticipantsUnit,
      endDate,
      endsAfterIterations,
    }
}

Response:

{
  "data": {
    "createRotation": {
            "ID": 18134,
            "scheduleID": 001,
            "name": "new daily 24x7",
            "color": null,
            "startDate": "2023-05-10T00:00:00Z",
            "period": "daily",
            "changeParticipantsFrequency": 1,
            "changeParticipantsUnit": "day",
            "endDate": null,
            "endsAfterIterations": null
        }
    }
}

Create Rotation with Participants Group


mutation {
  createRotation(
    scheduleID: 001,
    input:{
        name:"Daily 24x7",
        startDate:"2023-05-09T00:00:00Z",
        period:daily,
        changeParticipantsFrequency:1,
        changeParticipantsUnit:day,
        participantGroups:[
        {
          participants:[
          {
            type:"user",
            ID:"60f12dd3814bef0008c4036e"
          }]
        },
        {
          participants:[
          {
            type:"user",
    	    ID:"60f12dd3814bef0008c4036e"
          }]
        }]
    }){
      ID,
      scheduleID,
      name,
      color,
      startDate,
      period,
      changeParticipantsFrequency,
      changeParticipantsUnit,
      endDate,
      endsAfterIterations,
    }
}

Response:

{
  "data": {
    "createRotation": {
            "ID": 18134,
            "scheduleID": 001,
            "name": "new daily 24x7",
            "color": null,
            "startDate": "2023-05-10T00:00:00Z",
            "period": "daily",
            "changeParticipantsFrequency": 1,
            "changeParticipantsUnit": "day",
            "endDate": null,
            "endsAfterIterations": null
        }
    }
}

Last updated

#377: Key Based Deduplication

Change request updated