GroveStreams

Changing Component Name using API91

skeller private msg quote post Address this user
Is there an easy way to change the name of a component from a remote device using the API? It appears the only way is to download the component JSON entity, change the name, then POST it back. Is that correct or is there an easier way?
Post 1 IP   flag post
MikeMills private msg quote post Address this user
No easier way today, but we could easily add an API to do it.

What are you attempting to do? A couple of our Feed PUT APIs allow a component name to be included for new components.
Post 2 IP   flag post
skeller private msg quote post Address this user
When the customer configures the device in the field they can name the device using the devices UI. Sometime the name changes depending on what they are doing with the device. I would like that device name to automatically be reflected as the component name.

99% of the time they overlook setting the name until it shows up on the computer screen. (The default name is the network IP address.)
Post 3 IP   flag post
MikeMills private msg quote post Address this user
We'll add that API. It should arrive in the production site next week.

It will be something like this:

GET /comp/{compId}/name
PUT /comp/{compId}/name
POST /comp/{compId}/name
Post 4 IP   flag post
skeller private msg quote post Address this user
Very Cool! Thanks!
Post 5 IP   flag post
MikeMills private msg quote post Address this user
We've added this enhancement. What we did was add these APIs:
GET
http://grovestreams.com/api/comp/{compId}/property

POST
http://grovestreams.com/apicomp/{compId}/property


Click the above links to see examples of how to use them. Only the component name and description are supported so far.

Remember that you will need to expand your API key rights to allow for these API calls to be made. Add something like this to your API Key:
component/*/property GET POST
(allows for the getting and setting of any org component name and/or description)
Post 6 IP   flag post
skeller private msg quote post Address this user
Thanks for the update! I will give it a try today.
Post 7 IP   flag post
2969 7 7
Log in or sign up to compose a reply.