Websockets Flow Create

path
The path member can be a string of up to 128 characters. The path is always referenced by a / and an account id, and at least one other identifier, with each identifier is seperated by a /; much like a file system.

Optional Fields


capactiy
The number of Drops the Flow can store.
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](/docs/flow-filter-language) for more information.

Request


Example

  {
      "msgId": "my-request",
    "object": "flow",
    "type": "create",
    "value" : {
      "path": "/my_account_id/drink_recipes",
      "description": "My Drink Recipies",
      "filter": "EXISTS title"
    }
  }

Response


Example

  {
    "head": {
      "msgId": "my-request",
      "ok": true,
      "errors": [],
      "messages": [ "Your request has been processed successfully. A new resource has been created." ]
    },
    "body": {
        "id": "f53b1d1600cf27b75148de02e",
        "creationDate": 1409764633330,
        "capacity" : 1000,
        "path": "/my_account_id/drink_recipes",
        "description": "My Drink Recipies",
        "filter": "EXISTS title"
    }
  }