Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Device Tags #43

Closed
mczernin opened this issue Jul 10, 2016 · 1 comment
Closed

Update Device Tags #43

mczernin opened this issue Jul 10, 2016 · 1 comment
Labels

Comments

@mczernin
Copy link

mczernin commented Jul 10, 2016

Hello again, sorry for bothering you again :)
How do i get the following to work?

$api->devices->update('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx', [ 'tags' => '{"foo":"bar","this":"that"}', ]);

somehow nothing changes when i look at device list
i also tried

'tags' => {"foo":"bar","this":"that"}

Best regards,
Max

@norkunas
Copy link
Owner

norkunas commented Jul 18, 2016

Hello @mczernin,

Data that you provide for update is encoded to json format at the end, so you need to provide it only in the php format,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants