(self, basestation, schedule)
return self.request.post(f'https://{self.BASE_URL}/hmsweb/users/locations/'+basestation.get('uniqueId')+'/schedules', )
The following json is what was sent to the API when I edited my schedule. It contains all of the data necessary to configure a whole week. It's a little convoluted, but you can just play around with the scheduler in Chrome and watch the schema that gets sent.

        {
          "schedule": [
            {
              "duration": 600,
              "startActions": {
                "disableModes": [
                  "mode0"
                ],
                "enableModes": [
                  "mode1"
                ]
              },
              "days": [
                "Mo",
                "Tu",
                "We",
                "Th",
                "Fr",
                "Sa",
                "Su"
              ],
              "startTime": 0,
              "type": "weeklyAction",
              "endActions": {
                "disableModes": [
                  "mode1"
                ],
                "enableModes": [
                  "mode0"
                ]
              }
            },
            {
              "duration": 360,
              "startActions": {
                "disableModes": [
                  "mode0"
                ],
                "enableModes": [
                  "mode2"
                ]
              },
              "days": [
                "Mo",
                "Tu",
                "We",
                "Th",
                "Fr",
                "Sa",
                "Su"
              ],
              "startTime": 1080,
              "type": "weeklyAction",
              "endActions": {
                "disableModes": [
                  "mode2"
                ],
                "enableModes": [
                  "mode0"
                ]
              }
            },
            {
              "duration": 480,
              "startActions": {
                "disableModes": [
                  "mode0"
                ],
                "enableModes": [
                  "mode3"
                ]
              },
              "days": [
                "Tu"
              ],
              "startTime": 600,
              "type": "weeklyAction",
              "endActions": {
                "disableModes": [
                  "mode3"
                ],
                "enableModes": [
                  "mode0"
                ]
              }
            }
          ],
          "name": "",
          "id": "schedule.1",
          "enabled": true
        }
The following json is what was sent to the API when I edited my schedule. It contains all of the data necessary to configure a whole week. It's a little convoluted, but you can just play around with the scheduler in Chrome and watch the schema that gets sent.
The following json is what was sent to the API when I edited my schedule . It contains all of the data necessary to configure a whole week . It s a little convoluted but you can just play around with the scheduler in Chrome and watch the schema that gets sent .
def SetSchedule(self, basestation, schedule):
        """
        The following json is what was sent to the API when I edited my schedule. It contains all of the data necessary to configure a whole week. It's a little convoluted, but you can just play around with the scheduler in Chrome and watch the schema that gets sent.

        {
          "schedule": [
            {
              "duration": 600,
              "startActions": {
                "disableModes": [
                  "mode0"
                ],
                "enableModes": [
                  "mode1"
                ]
              },
              "days": [
                "Mo",
                "Tu",
                "We",
                "Th",
                "Fr",
                "Sa",
                "Su"
              ],
              "startTime": 0,
              "type": "weeklyAction",
              "endActions": {
                "disableModes": [
                  "mode1"
                ],
                "enableModes": [
                  "mode0"
                ]
              }
            },
            {
              "duration": 360,
              "startActions": {
                "disableModes": [
                  "mode0"
                ],
                "enableModes": [
                  "mode2"
                ]
              },
              "days": [
                "Mo",
                "Tu",
                "We",
                "Th",
                "Fr",
                "Sa",
                "Su"
              ],
              "startTime": 1080,
              "type": "weeklyAction",
              "endActions": {
                "disableModes": [
                  "mode2"
                ],
                "enableModes": [
                  "mode0"
                ]
              }
            },
            {
              "duration": 480,
              "startActions": {
                "disableModes": [
                  "mode0"
                ],
                "enableModes": [
                  "mode3"
                ]
              },
              "days": [
                "Tu"
              ],
              "startTime": 600,
              "type": "weeklyAction",
              "endActions": {
                "disableModes": [
                  "mode3"
                ],
                "enableModes": [
                  "mode0"
                ]
              }
            }
          ],
          "name": "",
          "id": "schedule.1",
          "enabled": true
        }
        """
        return self.request.post(f'https://{self.BASE_URL}/hmsweb/users/locations/'+basestation.get('uniqueId')+'/schedules', )
def SetSchedule ( self , basestation , schedule ) : return self . request . post ( f'https://{self.BASE_URL}/hmsweb/users/locations/' + basestation . get ( 'uniqueId' ) + '/schedules' , )