# 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
    }
  }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.incidents.cloud.solarwinds.com/terraform-and-api-documentation/getting-started-with-squadcast-graphql/rotations/update-rotation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
