HTTP Periodic Task Create


Required Fields


destination
The path of to the Flow where Drops will be written.

source OR js
at least one of these must be provided

Optional Fields


periodicity
How often the url will be polled, in milliseconds. The default value of one day will be used if you do not provide a value. The minimum acceptable value is one hour.

POST https://api.flowthings.io/v0.1/<account_id>/task/

Creates a new Periodic Task object

Request


Headers

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

Example

{"description":"My task description",
"destination":"/my_account/task_destination_path",
"displayName":"my task",
"periodicity":3600000,
"source":{"http":{"get": {"url":"http://x.y.z"},"parser":"rss"}},
}

Response


HTTP Codes

CodeDescription
201Resource Created
400Bad Request
401Unauthorized
503Service Unavailable

Example Response Body

  {
  "head" : {
    "status" : 201,
    "ok" : true,
    "messages" : [ "Your request has been processed successfully. A new resource has been created." ],
    "errors" : [ ]
    }
  },
  "body" : {
    "id" : "u54ab5d230cf25a3da95ae309",
    "creationDate" : 1420516643503,
    "creatorId" : "i54ab092d0cf29d26771d0026",
    "destination" : "/<account_id>/rss_output",
    "source":{"http":{"get":{"url":"http://x.y.z", "headers":{}},"parser":"rss"}},
    "reportFlowId" : "f54ab5d230cf25a3da95ae30b",
    "reportPath" : "/bob/:reports/u54ab5d230cf25a3da95ae309-report",
    "status" : "OK",
    "runCt":0
  }