Skip to content
Home
Overview
Overview
Users
Overview
Overview
Fire
Overview
Overview
Water
Overview
Overview
Access
Overview
Overview
Energy
Overview
Overview
Misc
Overview
Overview
Other
Overview
Overview

Arguments

homeId
ID!,non-nullrequired
data

Return type

RoutineCreatePayload
routineId
ID
errors
Mutation sample
mutation routineCreateInternal($homeId: ID!, $data: RoutineCreateInternalInput!) {
  routineCreateInternal(homeId: $homeId, data: $data) {
    routineId 
    errors {
      message 
      path 
    }
  }
}
Variables
{ "homeId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "data": { "logic": { "trigger": { "triggerType": "SINGLE_CONDITION", "conditions": [ { "type": "SPECIFIC_TIME_CONDITION", "specificTimeCondition": { "at": "Example String" }, "specificTimePeriodCondition": { "startAt": "Example String", "endAt": "Example String" }, "timeOfDayPeriodCondition": { "startTime": { "__typename": "TimeOfDayInput" }, "endTime": { "__typename": "TimeOfDayInput" }, "onDays": [ "MONDAY" ] }, "timeOfDayCondition": { "atTime": { "__typename": "TimeOfDayInput" }, "onDays": [ "MONDAY" ] } } ] }, "action": { "actionType": "DEVICE_COMMAND_REVERT", "commandType": "ALARM", "commandPayload": "Example String" }, "compensatingAction": { "actionType": "DEVICE_COMMAND_REVERT", "commandType": "ALARM", "commandPayload": "Example String" } }, "origin": { "type": "CUSTOM", "source": "DEMAND_RESPONSE" } } }
Response sample
{ "data": { "routineId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "errors": [ { "message": "Example String", "path": "Example String" } ] } }

Arguments

routineId
ID!,non-nullrequired
data

Return type

RoutineUpdateDescriptionPayload
routine
Mutation sample
mutation routineUpdateDescription($routineId: ID!, $data: RoutineUpdateDescriptionInput!) {
  routineUpdateDescription(routineId: $routineId, data: $data) {
    routine {
      id 
      logic {
        trigger {
          condition {
            at 
          }
        }
        action {
          deviceId 
          chargingOn 
        }
        compensatingAction {
          deviceId 
          chargingOn 
        }
      }
      state 
      origin {
        type 
        source 
      }
      description {
        name 
        description 
      }
    }
    errors {
      message 
      path 
    }
  }
}
Variables
{ "routineId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "data": { "name": "Example String", "description": "Example String" } }
Response sample
{ "data": { "routine": { "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "logic": { "trigger": { "condition": { "at": "Example String" } }, "action": { "deviceId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "chargingOn": true }, "compensatingAction": { "deviceId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "chargingOn": true } }, "state": "ACTIVE", "origin": { "type": "CUSTOM", "source": "DEMAND_RESPONSE" }, "description": { "name": "Example String", "description": "Example String" } }, "errors": [ { "message": "Example String", "path": "Example String" } ] } }

Arguments

routineId
ID!,non-nullrequired

Return type

RoutineActivatePayload
Mutation sample
mutation routineActivate($routineId: ID!) {
  routineActivate(routineId: $routineId) {
    errors {
      message 
      path 
    }
  }
}
Variables
{ "routineId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4" }
Response sample
{ "data": { "errors": [ { "message": "Example String", "path": "Example String" } ] } }

Arguments

routineId
ID!,non-nullrequired

Return type

RoutineDeactivatePayload
Mutation sample
mutation routineDeactivate($routineId: ID!) {
  routineDeactivate(routineId: $routineId) {
    errors {
      message 
      path 
    }
  }
}
Variables
{ "routineId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4" }
Response sample
{ "data": { "errors": [ { "message": "Example String", "path": "Example String" } ] } }

Arguments

routineId
ID!,non-nullrequired

Return type

RoutineDeletePayload
errors
Mutation sample
mutation routineDelete($routineId: ID!) {
  routineDelete(routineId: $routineId) {
    errors {
      message 
      path 
    }
  }
}
Variables
{ "routineId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4" }
Response sample
{ "data": { "errors": [ { "message": "Example String", "path": "Example String" } ] } }

Arguments

routineId
ID!,non-nullrequired
data
RoutineUpdateInput!,non-nullrequired

Return type

RoutineUpdatePayload
routine
errors
Mutation sample
mutation routineUpdate($routineId: ID!, $data: RoutineUpdateInput!) {
  routineUpdate(routineId: $routineId, data: $data) {
    routine {
      id 
      logic {
        trigger {
          condition {
            at 
          }
        }
        action {
          deviceId 
          chargingOn 
        }
        compensatingAction {
          deviceId 
          chargingOn 
        }
      }
      state 
      origin {
        type 
        source 
      }
      description {
        name 
        description 
      }
    }
    errors {
      message 
      path 
    }
  }
}
Variables
{ "routineId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "data": { "logic": { "trigger": { "triggerType": "SINGLE_CONDITION", "conditions": [ { "type": "SPECIFIC_TIME_CONDITION", "specificTimeCondition": { "at": "Example String" }, "specificTimePeriodCondition": { "startAt": "Example String", "endAt": "Example String" }, "timeOfDayPeriodCondition": { "startTime": { "__typename": "TimeOfDayInput" }, "endTime": { "__typename": "TimeOfDayInput" }, "onDays": [ "MONDAY" ] }, "timeOfDayCondition": { "atTime": { "__typename": "TimeOfDayInput" }, "onDays": [ "MONDAY" ] } } ] }, "action": { "actionType": "DEVICE_COMMAND_REVERT", "commandType": "ALARM", "commandPayload": "Example String" }, "compensatingAction": { "actionType": "DEVICE_COMMAND_REVERT", "commandType": "ALARM", "commandPayload": "Example String" } } } }
Response sample
{ "data": { "routine": { "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "logic": { "trigger": { "condition": { "at": "Example String" } }, "action": { "deviceId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "chargingOn": true }, "compensatingAction": { "deviceId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "chargingOn": true } }, "state": "ACTIVE", "origin": { "type": "CUSTOM", "source": "DEMAND_RESPONSE" }, "description": { "name": "Example String", "description": "Example String" } }, "errors": [ { "message": "Example String", "path": "Example String" } ] } }

Arguments

data

Return type

PushNotificationEndpointSetPayload
Mutation sample
mutation pushNotificationEndpointSet($data: PushNotificationEndpointInput!) {
  pushNotificationEndpointSet(data: $data) {
    errors {
      message 
      path 
    }
  }
}
Variables
{ "data": { "address": "Example String", "channel": "GCM" } }
Response sample
{ "data": { "errors": [ { "message": "Example String", "path": "Example String" } ] } }

Arguments

notificationIds
[ID!]!,non-nullrequired

Return type

NotificationInboxMarkAsReadPayload
Mutation sample
mutation notificationInboxMarkAsRead($notificationIds: [ID!]!) {
  notificationInboxMarkAsRead(notificationIds: $notificationIds) {
    errors {
      message 
      path 
    }
  }
}
Variables
{ "notificationIds": [ "9cfb1c81-4c79-452f-b1f5-8ee6571276b4" ] }
Response sample
{ "data": { "errors": [ { "message": "Example String", "path": "Example String" } ] } }

Return type

DemandResponseEnrollPayload
Mutation sample
mutation demandResponseEnroll {
  demandResponseEnroll {
    errors {
      message 
      path 
    }
  }
}
Response sample
{ "data": { "errors": [ { "message": "Example String", "path": "Example String" } ] } }

Return type

DemandResponseUnenrollPayload
Mutation sample
mutation demandResponseUnenroll {
  demandResponseUnenroll {
    errors {
      message 
      path 
    }
  }
}
Response sample
{ "data": { "errors": [ { "message": "Example String", "path": "Example String" } ] } }

Arguments

homeId
ID!,non-nullrequired
hourlyLimitWatts
Int!,non-nullrequired

Return type

SmartEnergyEnablePayload
Mutation sample
mutation smartEnergyEnable($homeId: ID!, $hourlyLimitWatts: Int!) {
  smartEnergyEnable(homeId: $homeId, hourlyLimitWatts: $hourlyLimitWatts) {
    errors {
      message 
      path 
    }
  }
}
Variables
{ "homeId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "hourlyLimitWatts": 40 }
Response sample
{ "data": { "errors": [ { "message": "Example String", "path": "Example String" } ] } }
Overview
Overview
Overview
Overview
Overview
Overview