{"_id":"57fcc4870312b20e00ac6520","project":"5435687035740020002a1c04","user":"54497cce27b7fc140078d9a5","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"},"__v":0,"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"},"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-10-31T23:11:09.733Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"name":"","code":"{\n    \"errors\": [\n    ],\n    \"skipped\": [\n    ],\n    \"updated\": [\n    \t\"your_flow_tag\"\n    ]\n}","language":"json","status":200},{"status":400,"name":"","code":"{\n    \"errors\": [\n        \"error description\"\n    ],\n    \"skipped\": [\n    \t\"your_flow_tag\"\n    ],\n    \"updated\": [\n    ]\n}","language":"json"}]},"settings":"","examples":{"codes":[{"code":"output.cells = array({\n\tarray({{text = \"Alpha\"},{number = 10}}),\n\tarray({{text = \"Bravo\"},{number = 20}}),\n\tarray({{text = \"Charlie\"},{number = 30}}),\n\tarray({{text = \"Delta\"},{number = 40}})\n})\noutput.headers = array({\"Name\", \"Value\"})","language":"lua","name":"Agent Lua"}]},"method":"post","auth":"required","params":[{"_id":"567b2a1817368a0d009a6e3c","ref":"","in":"path","required":true,"desc":"The flow tag","default":"","type":"string","name":"table_flow_tag"},{"_id":"567b2a1817368a0d009a6e3b","ref":"","in":"body","required":true,"desc":"An array of an array of Cells","default":"","type":"array_object","name":"cells"},{"_id":"567b2a1817368a0d009a6e3a","ref":"","in":"body","required":false,"desc":"An array of column header names.","default":"","type":"array_string","name":"headers"}],"url":"/flows/:table_flow_tag/metrics"},"isReference":false,"order":17,"body":"[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Cell Object Parameters\",\n    \"h-1\": \"Required\",\n    \"h-2\": \"Type\",\n    \"h-3\": \"Description\",\n    \"0-3\": \"How to align the value (left, center, right).\",\n    \"1-3\": \"The color for the value of the cell.\",\n    \"2-3\": \"An icon name. Must be the name of an icon from the Font Awesome (http://fortawesome.github.com/Font-Awesome/) library of icons.\",\n    \"3-3\": \"An array of numbers to graph in to a sparkline.\",\n    \"4-3\": \"The number value of the cell.  A cell must have a number or text, but not both.\",\n    \"6-3\": \"The type of value, can be \\\"dollar\\\", \\\"pound\\\", \\\"euro\\\", \\\"percent\\\", \\\"fahrenheit\\\", \\\"celsius\\\", \\\"temperature\\\" or a text suffix.\",\n    \"6-2\": \"string\",\n    \"4-2\": \"number\",\n    \"3-2\": \"array of numbers, max items = 200\",\n    \"2-2\": \"string\",\n    \"1-2\": \"CSS color\",\n    \"0-2\": \"string, one of: \\\"left\\\", \\\"center\\\", \\\"right\\\"\",\n    \"0-0\": \"alignment\",\n    \"1-0\": \"color\",\n    \"2-0\": \"icon\",\n    \"3-0\": \"sparkline\",\n    \"4-0\": \"number\",\n    \"6-0\": \"value_type\",\n    \"5-0\": \"text\",\n    \"5-2\": \"string\",\n    \"5-3\": \"The string value of the cell. A cell must have a number or text, but not both.  Use a newline character \\\\n to wrap text.\",\n    \"7-0\": \"rounding\",\n    \"7-2\": \"integer\",\n    \"7-3\": \"The number of digits to round to.  0 to round to the nearest integer.\"\n  },\n  \"cols\": 4,\n  \"rows\": 8\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/s8w6xgpzRPyqDeUVX95t_table.png\",\n        \"table.png\",\n        \"800\",\n        \"215\",\n        \"#a68474\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]","excerpt":"Table shows tabular data of rows and columns. Up to 1000 cells may be displayed if the associated widget is large enough. Send an array of table rows, each with an array representing the values for each column. An optional colors array may be sent that will have each color within it define the color of the columns in order from left to right.","slug":"table","type":"endpoint","title":"Table"}

postTable

Table shows tabular data of rows and columns. Up to 1000 cells may be displayed if the associated widget is large enough. Send an array of table rows, each with an array representing the values for each column. An optional colors array may be sent that will have each color within it define the color of the columns in order from left to right.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

table_flow_tag:
required
string
The flow tag

Body Params

cells:
required
array of objects
An array of an array of Cells
headers:
array of strings
An array of column header names.

Examples


Result Format


Documentation

[block:parameters] { "data": { "h-0": "Cell Object Parameters", "h-1": "Required", "h-2": "Type", "h-3": "Description", "0-3": "How to align the value (left, center, right).", "1-3": "The color for the value of the cell.", "2-3": "An icon name. Must be the name of an icon from the Font Awesome (http://fortawesome.github.com/Font-Awesome/) library of icons.", "3-3": "An array of numbers to graph in to a sparkline.", "4-3": "The number value of the cell. A cell must have a number or text, but not both.", "6-3": "The type of value, can be \"dollar\", \"pound\", \"euro\", \"percent\", \"fahrenheit\", \"celsius\", \"temperature\" or a text suffix.", "6-2": "string", "4-2": "number", "3-2": "array of numbers, max items = 200", "2-2": "string", "1-2": "CSS color", "0-2": "string, one of: \"left\", \"center\", \"right\"", "0-0": "alignment", "1-0": "color", "2-0": "icon", "3-0": "sparkline", "4-0": "number", "6-0": "value_type", "5-0": "text", "5-2": "string", "5-3": "The string value of the cell. A cell must have a number or text, but not both. Use a newline character \\n to wrap text.", "7-0": "rounding", "7-2": "integer", "7-3": "The number of digits to round to. 0 to round to the nearest integer." }, "cols": 4, "rows": 8 } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/s8w6xgpzRPyqDeUVX95t_table.png", "table.png", "800", "215", "#a68474", "" ] } ] } [/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 }}