{"__v":1,"_id":"588f722cbcace50f0052ba37","category":{"version":"588f722bbcace50f0052b9e1","project":"565f5fa26bafd40d0030a064","_id":"588f722bbcace50f0052b9e6","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-02-25T18:09:36.891Z","from_sync":false,"order":4,"slug":"dashboard-api","title":"Dashboard API"},"parentDoc":null,"project":"565f5fa26bafd40d0030a064","user":"565f3941ea46251700972783","version":{"__v":1,"_id":"588f722bbcace50f0052b9e1","project":"565f5fa26bafd40d0030a064","createdAt":"2017-01-30T17:04:43.410Z","releaseDate":"2017-01-30T17:04:43.410Z","categories":["588f722bbcace50f0052b9e2","588f722bbcace50f0052b9e3","588f722bbcace50f0052b9e4","588f722bbcace50f0052b9e5","588f722bbcace50f0052b9e6","588f722bbcace50f0052b9e7"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"5.3.0","version":"5.3.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-02-18T23:01:38.524Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"curl -b cookies.txt -c cookies.txt -H \"Content-Type: application/json\" -X POST -d '{\"library\":{\"name\":\"JWT\",\"description\":\"JSON Web Token\",\"data\":\"var JWT = \\\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0b3B0YWwuY29tIiwiZXhwIjoxNDI2NDIwODAwLCJodHRwOi8vdG9wdGFsLmNvbS9qd3RfY2xhaW1zL2lzX2FkbWluIjp0cnVlLCJjb21wYW55IjoiVG9wdGFsIiwiYXdlc29tZSI6dHJ1ZX0.yRQYnWzskCZUxPwaQupWkiUzKELZ49eM7oWxAQK_ZXw\\\";\"}}' \"http://api.nanoscale.io/apis/95/libraries\"","language":"curl"}]},"method":"post","results":{"codes":[{"name":"","code":"{\n    \"library\": {\n        \"api_id\": 95,\n        \"id\": 119,\n        \"name\": \"JWT\",\n        \"description\": \"JSON Web Token\",\n        \"data\": \"var JWT = \\\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0b3B0YWwuY29tIiwiZXhwIjoxNDI2NDIwODAwLCJodHRwOi8vdG9wdGFsLmNvbS9qd3RfY2xhaW1zL2lzX2FkbWluIjp0cnVlLCJjb21wYW55IjoiVG9wdGFsIiwiYXdlc29tZSI6dHJ1ZX0.yRQYnWzskCZUxPwaQupWkiUzKELZ49eM7oWxAQK_ZXw\\\";\"\n    }\n}\n","language":"json","status":200}]},"settings":"","auth":"required","params":[],"url":"/libraries"},"isReference":true,"order":27,"body":"Creates a single shared library.\n\nHere is a list of fields that can be provided:\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"key\",\n    \"h-1\": \"type\",\n    \"h-2\": \"description\",\n    \"0-0\": \"name\",\n    \"1-0\": \"description\",\n    \"2-0\": \"data\",\n    \"0-1\": \"`string`\",\n    \"1-1\": \"`string`\",\n    \"2-1\": \"`string`\",\n    \"0-2\": \"The name of the shared library.\",\n    \"1-2\": \"The description of the shared library.\",\n    \"2-2\": \"The content of the shared library.\"\n  },\n  \"cols\": 3,\n  \"rows\": 3\n}\n[/block]\nHere is an example of the `JSON` used to create a shared library:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"library\\\": {\\n        \\\"name\\\": \\\"JWT\\\",\\n        \\\"description\\\": \\\"JSON Web Token\\\",\\n        \\\"data\\\": \\\"var JWT = \\\\\\\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0b3B0YWwuY29tIiwiZXhwIjoxNDI2NDIwODAwLCJodHRwOi8vdG9wdGFsLmNvbS9qd3RfY2xhaW1zL2lzX2FkbWluIjp0cnVlLCJjb21wYW55IjoiVG9wdGFsIiwiYXdlc29tZSI6dHJ1ZX0.yRQYnWzskCZUxPwaQupWkiUzKELZ49eM7oWxAQK_ZXw\\\\\\\";\\\"\\n    }\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"libraries-1","type":"endpoint","title":"/libraries"}

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format


Documentation

Creates a single shared library. Here is a list of fields that can be provided: [block:parameters] { "data": { "h-0": "key", "h-1": "type", "h-2": "description", "0-0": "name", "1-0": "description", "2-0": "data", "0-1": "`string`", "1-1": "`string`", "2-1": "`string`", "0-2": "The name of the shared library.", "1-2": "The description of the shared library.", "2-2": "The content of the shared library." }, "cols": 3, "rows": 3 } [/block] Here is an example of the `JSON` used to create a shared library: [block:code] { "codes": [ { "code": "{\n \"library\": {\n \"name\": \"JWT\",\n \"description\": \"JSON Web Token\",\n \"data\": \"var JWT = \\\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0b3B0YWwuY29tIiwiZXhwIjoxNDI2NDIwODAwLCJodHRwOi8vdG9wdGFsLmNvbS9qd3RfY2xhaW1zL2lzX2FkbWluIjp0cnVlLCJjb21wYW55IjoiVG9wdGFsIiwiYXdlc29tZSI6dHJ1ZX0.yRQYnWzskCZUxPwaQupWkiUzKELZ49eM7oWxAQK_ZXw\\\";\"\n }\n}", "language": "json" } ] } [/block]