HTTP Error 500 when deleting PIN codes

Hi together,

I am using the Smartlock in combination with the Bridge and the Nuki Keypad. Now I am trying to delete expired PINs, as the keypad holds just 100 entries.

I am using the Web API as described in the example:
https:// developer.nuki. io/t/web-api-example-manage-pin-codes-for-your-nuki-keypad/54

curl -X DELETE --header 'Accept: application/json' 'https://api.nuki.io/smartlock/SMARTLOCK_ID/auth/AUTH_ID'

but get the following error message:

{
  "code": 500,
  "description": "The server encountered an unexpected condition which prevented it from fulfilling the request",
  "homeRef": "/",
  "reasonPhrase": "Internal Server Error",
  "uri": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1"
}

The error also occurs when testing via web interface https:// api.nuki .io and even after syncing with https:// api.nuki. io/smartlock/SMARTLOCK_ID/sync

So how I can delete the old entries?

Thanks a lot in advance!
Ben

Hi @benberlin !

Could you send me the devices ID and complete call used via PM to check in detail?

wbr,
Stephan

Hi Stephan,

Thanks for your help!

I meanwhile figured out, that I misinterpreted the names of the Nuki JSON IDs.

With the “id of the auth” in the Web API example and the “The smartlock authorization unique id” in the Swagger interface, I expected that the “AuthID” needs to be transmitted, not the “id”. After changing this, it works now.

Best regards,
Ben

1 Like