{"__v":1,"_id":"556bbee230922f1700ad5e22","category":{"__v":16,"_id":"55650b9fb893840d00444702","pages":["55650b9fb893840d00444704","55662e121ec2311900e4c538","55663058f579050d00c3d42d","556633b61ec2311900e4c544","55663419f579050d00c3d43f","55663490979a3c2500bbafa6","5566352a979a3c2500bbafa8","55663578979a3c2500bbafab","556635fd1ec2311900e4c551","5566365a979a3c2500bbafb3","556636daf579050d00c3d448","5568d269c87afd2500e5254c","556b5b46ab693b1900ce1722","556bbee230922f1700ad5e22","5578af9327f77c0d00fe62ce","567328a458c4890d00bb545f"],"project":"55650b9eb893840d004446fe","version":"55650b9eb893840d00444701","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-05-27T00:11:11.144Z","from_sync":false,"order":9999,"slug":"documentation","title":"Documentation"},"parentDoc":null,"project":"55650b9eb893840d004446fe","user":"5564f227f0f70f0d00a9ab20","version":{"__v":2,"_id":"55650b9eb893840d00444701","project":"55650b9eb893840d004446fe","createdAt":"2015-05-27T00:11:10.647Z","releaseDate":"2015-05-27T00:11:10.647Z","categories":["55650b9fb893840d00444702","5566a1557acd550d0075e894"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-06-01T02:09:38.571Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":9,"body":"[block:api-header]\n{\n  \"type\": \"post\",\n  \"title\": \"/devices/{uuid}/token\"\n}\n[/block]\nReset the token for the device\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -X POST \\\\\\n  --header \\\"meshblu_auth_uuid: c9eeca22-fc0f-4081-b430-bd5b67091106\\\" \\\\\\n  --header \\\"meshblu_auth_token: 077b6ec9c9dff30869d279aee1fc2a4f776181e9\\\" \\\\\\n  https://meshblu.octoblu.com/devices/c9eeca22-fc0f-4081-b430-bd5b67091106/token\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"Reset Token\",\n  \"body\": \"This will invalidate your previous token and your device will become inaccessible without the new token.\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"uuid\\\":\\\"c9eeca22-fc0f-4081-b430-bd5b67091106\\\",\\n  \\\"token\\\":\\\"167728cb25a449b39809ca2d82318703002d3628\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"reset-token","type":"basic","title":"Reset Token"}
[block:api-header] { "type": "post", "title": "/devices/{uuid}/token" } [/block] Reset the token for the device [block:code] { "codes": [ { "code": "curl -X POST \\\n --header \"meshblu_auth_uuid: c9eeca22-fc0f-4081-b430-bd5b67091106\" \\\n --header \"meshblu_auth_token: 077b6ec9c9dff30869d279aee1fc2a4f776181e9\" \\\n https://meshblu.octoblu.com/devices/c9eeca22-fc0f-4081-b430-bd5b67091106/token", "language": "shell" } ] } [/block] [block:callout] { "type": "danger", "title": "Reset Token", "body": "This will invalidate your previous token and your device will become inaccessible without the new token." } [/block] [block:code] { "codes": [ { "code": "{\n \"uuid\":\"c9eeca22-fc0f-4081-b430-bd5b67091106\",\n \"token\":\"167728cb25a449b39809ca2d82318703002d3628\"\n}", "language": "json" } ] } [/block]