teamviewer.com link icon
or
Ask The Community

Do you want to enjoy the new TeamViewer user interface for Windows?


Download the new version and let us know what you think about it! 👉 Please click here 👈

Calling PUT API: https://webapi.teamviewer.com/api/v1/devices/d********* don't update alias field

Hi,

When I send PUT request to API: https://webapi.teamviewer.com/api/v1/devices/d********* with next body {"groupid":"g92408424","alias":"Niuni_TV_QA-7030039"} returns success response with 204 status, but when I check at TeamViewer admin panel alias field are not updated to sended in body, but resets to default one ("MBX_XS_MS10072170300309").

Maybe I'm doind smth wrong?

Attach logs from server:

=> <EU-67> 27/06/2021, 10:57:10 * INFO (4114661) {s6994691} [registerTeamViewer | controllers/careProviderController.js:4681] Pushing a teamviewer re-registration request to the UTV for subscriber: 6072b7afebbb654f9ca262fa in cp: 58e4de10da2bef458e4c6e5c

2=> <EU-67> 27/06/2021, 10:57:10 * DEBUG (4114661) {s6994691} [reRegisterTeamViewer | addons/teamViewer.js:107] Pushing team viewer re-registration to UTV: 60d07e2de48b6e7f5f475889 with push token:ejW4WpHXQTaGJ7BD4So7h2:APA91bEKhQc0ZTrI3DqizEcKbg5X0F2eqKFgsPpEhx3CfFdkFnf4-ilFUkkmNnnyjY1vpdAnY9VfuxSRx_ENZKD1bEB5QGaN8L4mKU0fcd7MTU4dBor7rl109xQ84ZIoEuFE63MROLbS

3=> <EU-67> 27/06/2021, 10:57:10 * DEBUG [updateTeamViewerDetails | addons/teamViewer.js:17] update uniTv TeamViewer name for subscriber:6072b7afebbb654f9ca262fa UTV: 60d07e2de48b6e7f5f475889

4=> <EU-67> 27/06/2021, 10:57:10 * DEBUG [updateTeamViewerDetails | addons/teamViewer.js:47] Updating teamviewer name details: {"groupid":"g92408424","alias":"Niuni_TV_QA-7030039"}

5=> <EU-67> 27/06/2021, 10:57:10 * DEBUG [utils/pushFcm.js:49] Successfully sent with response: {

6 "multicast_id": 3593997802219683000,

7 "success": 1,

8 "failure": 0,

9 "canonical_ids": 0,

10 "results": 1

11}

12=> <EU-67> 27/06/2021, 10:57:10 * DEBUG [addons/teamViewer.js:55] TeamViewer device we're looking at:{"devices":[{"remotecontrol_id":"r453085022","device_id":"d408875759","alias":"Niuni_TV_QA-7030039","groupid":"g92408424","description":"Brand: MBX\nModel: XS\nSerial: MS1007217030039","online_state":"Online","assigned_to":true,"teamviewer_id":453085022}]}

13=> <EU-67> 27/06/2021, 10:57:10 * DEBUG [addons/teamViewer.js:71] Calling the TeamViewer API: https://webapi.teamviewer.com/api/v1/devices/d408875759 with options:{"url":"https://webapi.teamviewer.com/api/v1/devices/d408875759","host":"webapi.teamviewer.com","method":"PUT","headers":{"Authorization":"Bearer **************-**************","Content-Type":"application/json"},"body":"{\"groupid\":\"g92408424\",\"alias\":\"Niuni_TV_QA-7030039\"}"}

14=> <EU-67> 27/06/2021, 10:57:10 * DEBUG [addons/teamViewer.js:74] TeamViewer results: "" Res code:204

I've changed Bearer value to **** in logs.