{
  "opencollection": "1.0.0",
  "info": {
    "name": "Gridshare Customer Devices Operation Mode API",
    "version": "v1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://lunar-customer-prod-us-west-1.auth.us-west-1.amazoncognito.com/oauth2/authorize",
      "accessTokenUrl": "https://lunar-customer-prod-us-west-1.auth.us-west-1.amazoncognito.com/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Operation Mode",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Device Operation Mode",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://developer-api.customer.mygridshare.com/api/v2/devices/:synthId/operationmode",
            "params": [
              {
                "name": "synthId",
                "value": "",
                "type": "path",
                "description": "A device ID or a sensor ID from the site topology."
              }
            ]
          },
          "docs": "Get the current Gridshare operation mode of a device. Valid modes:\n- `Simple` — follow the simplest plan possible for the device kind\n- `Schedule` — follow a periodical plan\n- `Smart` — AI-optimized smart plan\n- `Unknown` — operation mode cannot be determined\n"
        },
        {
          "info": {
            "name": "Change Device Operation Mode",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://developer-api.customer.mygridshare.com/api/v2/devices/:synthId/operationmode",
            "params": [
              {
                "name": "synthId",
                "value": "",
                "type": "path",
                "description": "A device ID or a sensor ID from the site topology."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Set the Gridshare operation mode of a device."
        },
        {
          "info": {
            "name": "Get Device Operation Mode",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://developer-api.customer.mygridshare.com/api/v1/devices/:synthId/operationmode",
            "params": [
              {
                "name": "synthId",
                "value": "",
                "type": "path",
                "description": "A device ID or a sensor ID from the site topology."
              }
            ]
          },
          "docs": "Get the current Gridshare operation mode of a device. Valid modes:\n- `Simple` — follow the simplest plan possible for the device kind\n- `Schedule` — follow a periodical plan\n- `Smart` — AI-optimized smart plan\n- `Unknown` — operation mode cannot be determined\n"
        },
        {
          "info": {
            "name": "Change Device Operation Mode",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://developer-api.customer.mygridshare.com/api/v1/devices/:synthId/operationmode",
            "params": [
              {
                "name": "synthId",
                "value": "",
                "type": "path",
                "description": "A device ID or a sensor ID from the site topology."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Set the Gridshare operation mode for a device."
        }
      ]
    }
  ],
  "bundled": true
}