question

techpay avatar image
techpay asked Mark Mullan Deactivated commented

How to modify Device name programatically

Hi,

I need to modify the device name using clover sdk or rest api and save the changes.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Mark Mullan avatar image
Mark Mullan Deactivated answered Mark Mullan Deactivated commented

Hello,

Could you please provide us with some more information about what you're trying to accomplish, and how? You're able to change the names of your devices at https://www.clover.com/setupapp/m/{mId}/devices, but this form is CSRF protected.

Thanks,

Mark

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

techpay avatar image techpay commented ·

Hi Mark,

I am developing a taxi app that uses clover mobile, each clover device is attached to a cab, I want to be able to bulk edit device names to include cab no in it by code not manually using any app because associations may change from time to time, maybe something like the following:

Device.name = "Cab No 305" Device.Save();

Is this possible or is it read only and can't be done by code?

Thanks

0 Likes 0 ·
Mark Mullan avatar image Mark Mullan commented ·

You're able to Device.setName() via our SDK - would this fit your needs? Device.java

0 Likes 0 ·

Welcome to the
Clover Developer Community