API user to update tracker config?

Hi, what is the permission required for an API user to be able to update the tracker config?
I mean this config below:

I am able to get the config using an API user with configuration:get permission:

with this curl command:

curl "https://api.particle.io/v1/products/123456/config/e001239872493874232?access_token=812301823098123oiuoitwu098234092309482034"

However, I cannot find the configuration:update in the list. So I went ahead and created one with all the permissions I can find on that page:

With that API user, I still can't set the config:

curl -X PUT "https://api.particle.io/v1/products/123456/config/1235097345lsjflj092345?access_token=132019823lljflsdo8230840928304982034"
-H "Content-Type: application/json"
-d "{"configuration":{"current":{"rgb".....

response:

{"error":"invalid_scope","error_description":"Permission denied","code":400}%

What is the proper API user to update config on a particular tracker?
Thanks.

Try enabling configuration:update for your API user. It’s not in the list because the list is generated from the documentation for available roles, and for some reason the role is not listed for setting device configuration. And because it’s not in the list, the configuration UI doesn’t show it either.

1 Like

yup! that did it, thanks.

For reference, I created the API user like this:

curl -X POST "https://api.particle.io/v1/products/123456/team"
-H "Authorization: Bearer 123089713ljklkjflskjdflskjdf230984"
-H "Content-Type: application/json"
-H "Accept: application/json"
-d "{"friendly_name":"config_get_upd","scopes":["configuration:get","configuration:update"]}"

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.