{"action":"created","issue":{"url":"https://api.github.com/repos/malle-pietje/Unifi-API-browser/issues/1","labels_url":"https://api.github.com/repos/malle-pietje/Unifi-API-browser/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/malle-pietje/Unifi-API-browser/issues/1/comments","events_url":"https://api.github.com/repos/malle-pietje/Unifi-API-browser/issues/1/events","html_url":"https://github.com/malle-pietje/Unifi-API-browser/issues/1","id":115555663,"number":1,"title":"update-sta","user":{"login":"skutylev","id":9027455,"avatar_url":"https://avatars.githubusercontent.com/u/9027455?v=3","gravatar_id":"","url":"https://api.github.com/users/skutylev","html_url":"https://github.com/skutylev","followers_url":"https://api.github.com/users/skutylev/followers","following_url":"https://api.github.com/users/skutylev/following{/other_user}","gists_url":"https://api.github.com/users/skutylev/gists{/gist_id}","starred_url":"https://api.github.com/users/skutylev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skutylev/subscriptions","organizations_url":"https://api.github.com/users/skutylev/orgs","repos_url":"https://api.github.com/users/skutylev/repos","events_url":"https://api.github.com/users/skutylev/events{/privacy}","received_events_url":"https://api.github.com/users/skutylev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-06T17:55:48Z","updated_at":"2015-11-07T08:49:22Z","closed_at":null,"body":"In old versions Unifi, unifi_sh_api has funcions update-sta i.e.\r\n<code=\"php\">\r\nunifi_update_sta() {\r\n    if [ $# -lt 1 ] ; then\r\n        echo \"Usage: $0 <mac> <name> <email>\"\r\n        exit -1\r\n    fi\r\n    mac=$1\r\n    ${curl_cmd} --data \"json={'cmd':'update-sta', 'mac':'${mac}', 'name':'$2', 'email':'$3'}\" $baseurl/api/cmd/stamgr\r\n}\r\n</code>\r\nWhere is this functions in new version? It was deprecated?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/malle-pietje/Unifi-API-browser/issues/comments/154659769","html_url":"https://github.com/malle-pietje/Unifi-API-browser/issues/1#issuecomment-154659769","issue_url":"https://api.github.com/repos/malle-pietje/Unifi-API-browser/issues/1","id":154659769,"user":{"login":"malle-pietje","id":12016131,"avatar_url":"https://avatars.githubusercontent.com/u/12016131?v=3","gravatar_id":"","url":"https://api.github.com/users/malle-pietje","html_url":"https://github.com/malle-pietje","followers_url":"https://api.github.com/users/malle-pietje/followers","following_url":"https://api.github.com/users/malle-pietje/following{/other_user}","gists_url":"https://api.github.com/users/malle-pietje/gists{/gist_id}","starred_url":"https://api.github.com/users/malle-pietje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malle-pietje/subscriptions","organizations_url":"https://api.github.com/users/malle-pietje/orgs","repos_url":"https://api.github.com/users/malle-pietje/repos","events_url":"https://api.github.com/users/malle-pietje/events{/privacy}","received_events_url":"https://api.github.com/users/malle-pietje/received_events","type":"User","site_admin":false},"created_at":"2015-11-07T08:49:22Z","updated_at":"2015-11-07T08:49:22Z","body":"found how to update a client name and note....\r\nAPI url:\r\nhttps://<ip address/hostname>:8443/api/s/<siteid>/upd/user/<_id>\r\npayload:\r\n{name: \"device name\", note: \"device note\"}\r\n\r\nYou can add a method to the phpapi class that calls this url with the specified payload. You will need to have the clients \"_id\" value as it is part of the AP url to call."}}