{"action":"created","issue":{"url":"https://api.github.com/repos/openstf/stf/issues/259","labels_url":"https://api.github.com/repos/openstf/stf/issues/259/labels{/name}","comments_url":"https://api.github.com/repos/openstf/stf/issues/259/comments","events_url":"https://api.github.com/repos/openstf/stf/issues/259/events","html_url":"https://github.com/openstf/stf/issues/259","id":129001466,"number":259,"title":"How to use REST API to reset device timeout from being kickout?","user":{"login":"BigWavelet","id":9583937,"avatar_url":"https://avatars.githubusercontent.com/u/9583937?v=3","gravatar_id":"","url":"https://api.github.com/users/BigWavelet","html_url":"https://github.com/BigWavelet","followers_url":"https://api.github.com/users/BigWavelet/followers","following_url":"https://api.github.com/users/BigWavelet/following{/other_user}","gists_url":"https://api.github.com/users/BigWavelet/gists{/gist_id}","starred_url":"https://api.github.com/users/BigWavelet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigWavelet/subscriptions","organizations_url":"https://api.github.com/users/BigWavelet/orgs","repos_url":"https://api.github.com/users/BigWavelet/repos","events_url":"https://api.github.com/users/BigWavelet/events{/privacy}","received_events_url":"https://api.github.com/users/BigWavelet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-27T01:51:11Z","updated_at":"2016-01-27T01:56:27Z","closed_at":null,"body":"@vbanthia Need your help.\r\n\r\nI can use rest api to reserve a device, but it will be released automaticly when timeout. (In my machine is 10min), Want to know how to rest the timeout use api. thanks.\r\n"},"comment":{"url":"https://api.github.com/repos/openstf/stf/issues/comments/175340467","html_url":"https://github.com/openstf/stf/issues/259#issuecomment-175340467","issue_url":"https://api.github.com/repos/openstf/stf/issues/259","id":175340467,"user":{"login":"vbanthia","id":7875161,"avatar_url":"https://avatars.githubusercontent.com/u/7875161?v=3","gravatar_id":"","url":"https://api.github.com/users/vbanthia","html_url":"https://github.com/vbanthia","followers_url":"https://api.github.com/users/vbanthia/followers","following_url":"https://api.github.com/users/vbanthia/following{/other_user}","gists_url":"https://api.github.com/users/vbanthia/gists{/gist_id}","starred_url":"https://api.github.com/users/vbanthia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbanthia/subscriptions","organizations_url":"https://api.github.com/users/vbanthia/orgs","repos_url":"https://api.github.com/users/vbanthia/repos","events_url":"https://api.github.com/users/vbanthia/events{/privacy}","received_events_url":"https://api.github.com/users/vbanthia/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T01:56:27Z","updated_at":"2016-01-27T01:56:27Z","body":"You can set optional `timeout` parameter while adding a new device, something like this\r\n\r\n```js\r\nvar device = {serial: 'yyyy', timeout: 900000 }\r\n\r\nclient.then(function(api) {\r\n  return api.user.addUserDevice({device: device})\r\n    .then(function(res) {\r\n      console.log(res.obj)\r\n      // { success: true, description: 'Device successfully added' }\r\n    })\r\n})\r\n.catch(function(err) {\r\n  console.log(err)\r\n})\r\n```\r\n\r\n`timeout` is in ms"}}