HTTP Flow Update


Optional Fields


capactiy
The maximum number of Drops stored within the Flow. The default value is 1,000, maximum is 100,000. A value of 0 will store no data. When the Flow exceeds its capacity of Drops, older Drops will be deleted automatically.
description
A more detailed description of the Flow.
filter
A filter which is used as a pass/fail test for writing new Drops to the Flow. See Flow Filter Language for more information.

Request


PUT https://api.flowthings.io/v0.1/<account_id>/flow/<flowId>

The above will update a Flow in its entirety. To modify specific object members individually, see Flow HTTP Member Update.

Headers

NameDescription
Content-Typeapplication/json
X-Auth-TokenAuthentication Token

Example

  {
    "description": "I love test data, even more"
  }

Response


HTTP Codes

CodeDescription
200Resource Updated
400Bad Request
401Unauthorized
503Service Unavailable

Example

{
  "head": {
    "status": 200,
    "ok": true,
    "errors": [],
    "messages": [ "Your request has been processed successfully." ]
  },
  "body": {
    "id": "f53b1d1600cf27b75148de0ac",
    "creationDate": 1404162400648,
    "capacity" : 1000,
    "lastEditDate": 1404313431577,
    "description": "I love test data, even more",
    "path": "/my_account_id/myTest",
    "filter": "",
  }
}