WebSocket Drop Update

The below will update a Drop in its entirety.

NOTE: Updating a Drop will trigger any Tracks monitoring that Drop's Flow to reprocess that Drop through the normal filter - js process.

Example

  {
    "msgId" : "my-request",
    "object": "drop",
    "type"  : "update",
    "id"    : ["f53b1d1600cf27b75148de0ac", "dd540296740cf2ee54bcc4cf33"],
    "value" :
    {
        "location": {
            "lat": 40.703285,
            "lon": -73.987852
        },
        "elems": {
            "name": "bar",
            "status_codes": {
                "type": "sortedSet",
                "value": [
                    {
                        "type": "integer",
                        "value": 100
                    },
                    {
                        "type": "integer",
                        "value": 110
                    },
                    {
                        "type": "integer",
                        "value": 100
                    },
                    {
                        "type": "integer",
                        "value": 75
                    }
                ]
            },
            "stats": {
                "voltage": 15.4,
                "temp": 40.4,
                "uptime": 1992343.4
            }
        }
    }
  }

Response


Example

 {
      "head": {
          "msgId": "my-request",
          "ok": true,
          "messages": [
              "Your request has been processed successfully. A resource has been updated."
          ],
          "errors": []
      },
      "body": {
          "id": "d540296740cf2ee54bcc4cf33",
          "flowId": "f540296740cf23301a89a5806",
          "creationDate": 1409455732680,
          "path": "/my_account_id/my_first_flow",
          "location": {
              "lat": 40.703285,
              "lon": -73.987852,
              "specifiers": {}
          },
          "elems": {
              "error_rate": {
                  "type": "float",
                  "value": 0.15
              },
              "stats": {
                  "type": "map",
                  "value": {
                      "temp": {
                          "type": "float",
                          "value": 40.4
                      },
                      "uptime": {
                          "type": "float",
                          "value": 1992343.4
                      },
                      "voltage": {
                          "type": "float",
                          "value": 15.4
                      }
                  }
              },
              "service_available": {
                  "type": "boolean",
                  "value": true
              },
              "status_codes": {
                  "type": "sortedSet",
                  "value": [
                      {
                          "type": "integer",
                          "value": 75
                      },
                      {
                          "type": "integer",
                          "value": 100
                      },
                      {
                          "type": "integer",
                          "value": 110
                      }
                  ]
              },
              "name": {
                  "type": "string",
                  "value": "bar"
              }
          }
      }
  }