{"_id":"57fcc4870312b20e00ac6527","category":{"_id":"57fcc4860312b20e00ac64ca","version":"57fcc4860312b20e00ac64c0","__v":0,"project":"5435687035740020002a1c04","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-30T22:39:02.374Z","from_sync":false,"order":9,"slug":"flow-data-structures","title":"Flow Data Structures"},"user":"54497cce27b7fc140078d9a5","__v":0,"parentDoc":null,"project":"5435687035740020002a1c04","version":{"_id":"57fcc4860312b20e00ac64c0","project":"5435687035740020002a1c04","__v":1,"createdAt":"2016-10-11T10:52:54.637Z","releaseDate":"2016-10-11T10:52:54.637Z","categories":["57fcc4860312b20e00ac64c1","57fcc4860312b20e00ac64c2","57fcc4860312b20e00ac64c3","57fcc4860312b20e00ac64c4","57fcc4860312b20e00ac64c5","57fcc4860312b20e00ac64c6","57fcc4860312b20e00ac64c7","57fcc4860312b20e00ac64c8","57fcc4860312b20e00ac64c9","57fcc4860312b20e00ac64ca","57fcc4860312b20e00ac64cb"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"[APP-1265], [APP-1035]","version_clean":"5.2.0","version":"5.2"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-10-31T23:15:37.138Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"language":"lua","name":"Agent Lua","code":"output.location = \"Vancouver, BC\""}]},"method":"post","results":{"codes":[{"name":"","code":"{\n    \"errors\": [\n    ],\n    \"skipped\": [\n    ],\n    \"updated\": [\n    \t\"your_flow_tag\"\n    ]\n}","language":"json","status":200},{"name":"","code":"{\n    \"errors\": [\n        \"error description\"\n    ],\n    \"skipped\": [\n    \t\"your_flow_tag\"\n    ],\n    \"updated\": [\n    ]\n}","language":"json","status":400}]},"settings":"","auth":"required","params":[{"_id":"5682dc41cb4d190d0027692a","ref":"","in":"path","required":true,"desc":"The flow tag","default":"","type":"string","name":"weather_flow_tag"},{"_id":"5682dc41cb4d190d00276929","ref":"","in":"body","required":true,"desc":"The location of the weather. ie. \"Vancouver, BC\"","default":"","type":"string","name":"location"},{"_id":"5682dc41cb4d190d00276928","ref":"","in":"body","required":false,"desc":"The unit of the temperature. It defaults to celsius.  One of: \"celsius\", \"fahrenheit\"","default":"","type":"string","name":"temperature"}],"url":"/flows/:weather_flow_tag/metrics"},"isReference":false,"order":24,"body":"[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/bbGyeD4DTAm7HCtZkwbn_weather.png\",\n        \"weather.png\",\n        \"800\",\n        \"215\",\n        \"#8c5648\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]","excerpt":"Weather flow displays weather information for a location.","slug":"weather","type":"endpoint","title":"Weather"}

postWeather

Weather flow displays weather information for a location.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

weather_flow_tag:
required
string
The flow tag

Body Params

location:
required
string
The location of the weather. ie. "Vancouver, BC"
temperature:
string
The unit of the temperature. It defaults to celsius. One of: "celsius", "fahrenheit"

Examples


Result Format


Documentation

[block:image] { "images": [ { "image": [ "https://files.readme.io/bbGyeD4DTAm7HCtZkwbn_weather.png", "weather.png", "800", "215", "#8c5648", "" ] } ] } [/block]

User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}