{"__v":0,"_id":"55fcad6d6b17950d000750e0","category":{"__v":0,"_id":"56394a4c2fc5520d001a4db4","pages":[],"project":"5553d36165e8260d0024419a","version":"55fc9b793c21291900e7e0d7","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-11-03T23:59:08.937Z","from_sync":false,"order":19,"slug":"api-reports","title":"API: Reports"},"editedParams":true,"editedParams2":true,"parentDoc":null,"project":"5553d36165e8260d0024419a","user":"5553d33065e8260d00244199","version":{"__v":12,"_id":"55fc9b793c21291900e7e0d7","project":"5553d36165e8260d0024419a","createdAt":"2015-09-18T23:17:13.545Z","releaseDate":"2015-09-18T23:17:13.545Z","categories":["55fc9b7a3c21291900e7e0d8","55fc9b7a3c21291900e7e0d9","55fc9b7a3c21291900e7e0da","55fc9b7a3c21291900e7e0db","55fc9b7a3c21291900e7e0dc","55fc9b7a3c21291900e7e0dd","55fc9b7a3c21291900e7e0de","55fc9b7a3c21291900e7e0df","55fc9b7a3c21291900e7e0e0","55fc9b7a3c21291900e7e0e1","55fc9b7a3c21291900e7e0e2","55fc9b7a3c21291900e7e0e3","55fc9bad4c80910d00b9bece","56394a0c3539050d00082122","56394a2f68b11f0d0048c9ff","56394a462fc5520d001a4db3","56394a4c2fc5520d001a4db4","56394a5b049e420d00476b5c","56394a6a2fc5520d001a4db5","56394f791593e4190073a44b","567b3adfb56bac0d0019d8d9","569d590e5a2b060d008741eb","569ea93dffccd10d00a05c7f"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-09-19T00:33:49.796Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"{\n    \"meta\": {\n        \"name\": \"Minimal Report name bad create\"\n    },\n    \"groups\": [\n        {\n            \"name\": \"Group Name\",\n            \"rows\": [\n                {\n                    \"call_id\": \"__PARENT_ID__\",\n                    \"location_id\": \"\"\n                },\n                {\n                    \"call_id\": \"__PARENT_ID__\",\n                    \"location_id\": \"\"\n                }\n            ]\n        },\n        {\n            \"name\": \"Group Name 2\",\n            \"rows\": [\n                {\n                    \"call_id\": \"__PARENT_ID__\",\n                    \"location_id\": \"\"\n                },\n                {\n                    \"call_id\": \"__PARENT_ID__\",\n                    \"location_id\": \"\"\n                },\n                {\n                    \"call_id\": \"__PARENT_ID__\",\n                    \"location_id\": \"\"\n                }\n            ]\n        }\n    ]\n}","language":"json"}]},"method":"put","results":{"codes":[{"name":"","code":"{\n  \"access\": {\n    \"org\": false, \n    \"public\": false\n  }, \n  \"meta\": {\n    \"name\": \"Minimal Report name bad create\", \n    \"created\": \"2015-09-18T23:29:41.915605Z\", \n    \"tags\": [], \n    \"last_update\": \"2015-09-18T23:29:42.091896Z\", \n    \"owner\": \"agxkZXZ-dmlhdGVzdHNyEQsSBFVzZXIYgICAgICAgAoM\", \n    \"description\": null\n  }, \n  \"id\": \"agxkZXZ-dmlhdGVzdHNyFwsSClRlc3RSZXBvcnQYgICAgKDLmgoM\", \n  \"groups\": [\n    {\n      \"rows\": [\n        {\n          \"location_id\": \"\", \n          \"call_id\": \"agxkZXZ-dmlhdGVzdHNyFwsSClRlc3RTZXR1cDIYgICAgKDL6gsM\"\n        }, \n        {\n          \"location_id\": \"\", \n          \"call_id\": \"agxkZXZ-dmlhdGVzdHNyFwsSClRlc3RTZXR1cDIYgICAgKDL6gsM\"\n        }\n      ], \n      \"name\": \"Group Name\"\n    }, \n    {\n      \"rows\": [\n        {\n          \"location_id\": \"\", \n          \"call_id\": \"agxkZXZ-dmlhdGVzdHNyFwsSClRlc3RTZXR1cDIYgICAgKDL6gsM\"\n        }, \n        {\n          \"location_id\": \"\", \n          \"call_id\": \"agxkZXZ-dmlhdGVzdHNyFwsSClRlc3RTZXR1cDIYgICAgKDL6gsM\"\n        }, \n        {\n          \"location_id\": \"\", \n          \"call_id\": \"agxkZXZ-dmlhdGVzdHNyFwsSClRlc3RTZXR1cDIYgICAgKDL6gsM\"\n        }\n      ], \n      \"name\": \"Group Name 2\"\n    }\n  ]\n}","language":"json","status":200},{"name":"","code":"{\n  \"error_msg\": \"Additional properties are not allowed (u'id' was unexpected)\", \n  \"error\": 400\n}","language":"json","status":400}]},"settings":"","auth":"required","params":[{"_id":"55fca80e3734100d00a9880c","ref":"","in":"path","required":true,"desc":"ID string of Report you're updating","default":"","type":"string","name":"id"}],"url":"/reports/:id/"},"isReference":false,"order":4,"body":"[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"import APImetrics\\nimport json\\n\\nobj_id = \\\"ID_OF_OBJECT\\\"\\n\\napimetrics = APImetrics.APImetricsAPI(apimetrics_key=\\\"your_api_key\\\")\\nwith open('update.json') as handle:\\n  data = json.loads(handle.read())\\n  resp = apimetrics.update_report(obj_id, data)\\n  print resp['id']\",\n      \"language\": \"python\"\n    }\n  ]\n}\n[/block]","excerpt":"Use this API to get an existing Report.","slug":"reportsid-1","type":"endpoint","title":"Update an existing Report"}

putUpdate an existing Report

Use this API to get an existing Report.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

id:
required
string
ID string of Report you're updating

Examples


Result Format


Documentation

[block:code] { "codes": [ { "code": "import APImetrics\nimport json\n\nobj_id = \"ID_OF_OBJECT\"\n\napimetrics = APImetrics.APImetricsAPI(apimetrics_key=\"your_api_key\")\nwith open('update.json') as handle:\n data = json.loads(handle.read())\n resp = apimetrics.update_report(obj_id, data)\n print resp['id']", "language": "python" } ] } [/block]

User Information

Try It Out

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