Update Rotation

The GraphQL request mentioned functions as a PUT request. If you wish to remove a participant, kindly remove the corresponding user ID and type object from the participantGroups array and send the entire payload. Please refrain from altering any other parameters, as this may affect the rotation.

mutation {
  updateRotation(
    ID: 18135
    input: 
    {
      name: "New Daily 24x7", 
      startDate: "2023-05-08T09:28:39.365Z", 
      period: daily, 
      changeParticipantsUnit: day, 
      changeParticipantsFrequency: 1, 
      shiftTimeSlot: {
        startHour: 1, 
        startMin: 0, 
        duration: 1440
      }, 
      participantGroups: {
        participants: [
          {
            type: "user", 
            ID: "61963608090a650008fff152"
          }, 
          {
            type: "user", 
            ID: "63e0bf3d7db408977b43d71d"
          }
        ]
      }
    }
  ) {
    name
    ID
    scheduleID
  }
}

Response:

{
  "data": {
    "updateRotation": {
      "name": "New Daily 24x7",
      "ID": 18135,
      "scheduleID": 9054
    }
  }
}

Last updated