Is the objectId part of the data PUT url optional?

I was implementing (REST client) code to update an object, and accidentally forgot to add the objectId to the URL for my PUT request. The objectId was in the request body though, and the update operation seems to have succeeded as planned.
Is this normal behaviour, and should I expect this to keep working? It works well with how my code is organized.
Kind regards,


You can add objectId in request url or in request body for update operation.
It is correct.