particle-iot / cloud

A place to discuss issues, enhancements, features for: API, Cloud Compiler, Web IDE (Build), Webhooks, Console, and Device Setup
2 stars 0 forks source link

No error message when renaming a device to a name that already exists #3

Closed monkbroc closed 8 years ago

monkbroc commented 8 years ago

Bug

Expected behavior

When renaming a device to a name that already exists for the current user I expect an error message that tells me why the rename failed.

Observed behavior

The rename failed with an empty error array.

Steps to reproduce

curl -X PUT https://api.particle.io/v1/devices/123 -d name=name_exists -d access_token=abc
{
  "ok": false,
  "code": 403,
  "errors": [
    {}
  ]
}
brycekahle commented 8 years ago

Fixed in latest release