{"_id":"588f722cbcace50f0052ba1f","category":{"_id":"588f722bbcace50f0052b9e6","__v":0,"project":"565f5fa26bafd40d0030a064","version":"588f722bbcace50f0052b9e1","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-02-25T18:09:36.891Z","from_sync":false,"order":4,"slug":"dashboard-api","title":"Dashboard API"},"project":"565f5fa26bafd40d0030a064","parentDoc":null,"user":"565f3941ea46251700972783","__v":0,"version":{"_id":"588f722bbcace50f0052b9e1","project":"565f5fa26bafd40d0030a064","__v":1,"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-22T23:39:06.124Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"status":200,"language":"json","code":"{\n    \"user\": {\n        \"id\": 96,\n        \"name\": \"Fizz Buzz\",\n        \"email\": \"fizzbuzz:::at:::nanoscale.io\",\n        \"admin\": false,\n        \"confirmed\": true\n    }\n}","name":""}]},"settings":"","examples":{"codes":[{"language":"curl","code":"curl -b cookies.txt -c cookies.txt -H \"Content-Type: application/json\" -X POST -d '{\"user\":{\"name\":\"Fizz Buzz\",\"email\":\"fizzbuzz@nanoscale.io\",\"password\":\"fizzbuzz\",\"password_confirmation\":\"fizzbuzz\",\"admin\":false,\"confirmed\":true}}' \"https://api.nanoscale.io/users\""}]},"method":"post","auth":"required","params":[],"url":"/users"},"isReference":true,"order":3,"body":"Creates a single user.\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\": \"email\",\n    \"2-0\": \"password\",\n    \"3-0\": \"password_confirmation\",\n    \"4-0\": \"admin\",\n    \"5-0\": \"confirmed\",\n    \"0-1\": \"`string`\",\n    \"1-1\": \"`string`\",\n    \"2-1\": \"`string`\",\n    \"3-1\": \"`string`\",\n    \"4-1\": \"`boolean`\",\n    \"5-1\": \"`boolean`\",\n    \"0-2\": \"The name of the user.\",\n    \"1-2\": \"The email of the user.\",\n    \"2-2\": \"The updated password of the user.\",\n    \"3-2\": \"The updated password of the user.\",\n    \"4-2\": \"Indicates if the user is an administrator.\",\n    \"5-2\": \"Indicates if the user has confirmed their account.\"\n  },\n  \"cols\": 3,\n  \"rows\": 6\n}\n[/block]\nHere is an example of the `JSON` used to create a user:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"user\\\": {\\n        \\\"name\\\": \\\"Fizz Buzz\\\",\\n        \\\"email\\\": \\\"fizzbuzz@nanoscale.io\\\",\\n        \\\"password\\\": \\\"fizzbuzz\\\",\\n        \\\"password_confirmation\\\": \\\"fizzbuzz\\\",\\n        \\\"admin\\\": false,\\n        \\\"confirmed\\\": true\\n    }\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"users-2","type":"endpoint","title":"/users"}

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format


Documentation

Creates a single user. 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": "email", "2-0": "password", "3-0": "password_confirmation", "4-0": "admin", "5-0": "confirmed", "0-1": "`string`", "1-1": "`string`", "2-1": "`string`", "3-1": "`string`", "4-1": "`boolean`", "5-1": "`boolean`", "0-2": "The name of the user.", "1-2": "The email of the user.", "2-2": "The updated password of the user.", "3-2": "The updated password of the user.", "4-2": "Indicates if the user is an administrator.", "5-2": "Indicates if the user has confirmed their account." }, "cols": 3, "rows": 6 } [/block] Here is an example of the `JSON` used to create a user: [block:code] { "codes": [ { "code": "{\n \"user\": {\n \"name\": \"Fizz Buzz\",\n \"email\": \"fizzbuzz@nanoscale.io\",\n \"password\": \"fizzbuzz\",\n \"password_confirmation\": \"fizzbuzz\",\n \"admin\": false,\n \"confirmed\": true\n }\n}", "language": "json" } ] } [/block]