HTTP Task Update

Request


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

Updates to the periodic task will not take effect until the next scheduled running of the task.

Note: The destination field can not currently be updated.

Headers

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

Example

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

{
    "periodicity" : 1234567
}

Response


HTTP Codes

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

Example

{
  "head" : {
    "status" : 200,
    "ok" : true,
    "messages" : [ ],
    "errors" : [ ],
    "references" : { }
  },
  "body" : {        
    "id" : "u552c285c0cf20fce665dd4b0",
    "creationDate" : 1428957276713,
    "creatorId" : "i552c0d720cf2834e23053124",
    "destination" : "/<account_id>some_output_path",
    "displayName" : "some display name", 
    "lastEditDate" : 1428975728358,
    "lastRun" : 1428958304212,
    "nextRun" : 1428961904229,
    "periodicity" : 1234567,
    "reportFlowId" : "f552c285c0cf20fce665dd4b2",
    "reportPath" : "/<account_id>/:reports/u552c285c0cf20fce665dd4b0-report",
    "runCt" : 1,
    "status" : "OK",
    "source": {
       "http": {
            "get": { "headers": {}, "url": "http://losangeles.cbslocal.com/category/sports/rams/feed/" },
            "parser": "rss"
       }
   }
 }
}