Error when claiming a device via two-legged auth method

Our company is allowing users to claim their device with the two-legged approach. This has been working well, but recently I experienced a new error that is preventing users from creating shadow customers when claiming their device.

The flow that we are using is detailed here and here. The error is occurring after this step (not real credentials):

$ curl -X POST https://api.particle.io/v1/products/1319/device_claims?access_token=59993d84d58dcc198069a171e9c2c69b0d52a58b

where I get the following error:

{"ok"=>false, "code"=>400, "error"=>"activation code was empty"}

Normally I would receive a json object with a claim code. What is the activation code? Could this be because devices were previously claimed?

This is the only post that I’ve found that refers to the “Activation Code”, but my setup is a bit different

I just found this. Changing the configuration setting did the trick!

1 Like