Claim response varies

With a device with NO claim running:

curl https://api.particle.io/v1/devices \       
       -d id=PARTICLE_ID \
       -d access_token=ACCESS_TOKEN -v

will return

{"user_id":"USER_ID","updated_at":"2018-09-17T17:44:36.841Z","id":"PARTICLE_ID","connected":true,"ok":true}

However when run immediately right after (a second time in a row claimed by myself) it returns:

{"deviceID":"PARTICLE_ID","connected":true,"ok":true}

Notes that one returns the particle id under the “ID” key while the other turns the id under the “deviceID” … this makes developing harder because we cannot rely on the response coming back the same… where would I report this as a bug?

For API issues, the best place is a Github issue in the cloud repository:

1 Like

Filed, thank you!