I’m analysing my log in GET [/smartlock/log]
But comparing the action codes with the ones in documentation I’m surprised to see one I can’t reconcile with the documentation: https://developer.nuki.io/page/nuki-web-api-120/3#heading--smart-lock-action
Where can I find a complete list with all the action codes?
You can find the values at the swagger model for the /smartlock/log endpoint:
Just switch to Model view (from the default Example Value view)
You’ll see that it is
241 .. door closed
Amazing, thanks for pointing me in the right direction!
Does this means that the docu in https://developer.nuki.io/page/nuki-web-api-120/3#heading--smart-lock-action is not up to date?
No. Here only lock actions are listed. This is not to be confused with the action which triggered a log entry. The name similarity can be confusing, yes.
And in general I agree, that we need to update the documentation to maybe contain more information which is currently only available in the Swagger models. (Though you will always find them there directly at the endpoint which you need.)
Awesome, I get it thanks for the clarification!