Setting a null value willl set it to null, if nullable. Yes!
El jue, 21 mar 2024 a las 10:07, Fridolin SOMERS via Koha-devel (<
koha-devel@lists.koha-community.org>) escribió:
>
>
> Le 21/03/2024 à 11:18, Fridolin SOMERS via Koha-devel a écrit :
> > OK
> >
> > But currently this means in PUT you
Le 21/03/2024 à 11:18, Fridolin SOMERS via Koha-devel a écrit :
OK
But currently this means in PUT you need to add in body the required
fields (even when unchanged) and the fields you want to change.
Missing fields are kept unchanged right ?
So there is no way to blank a field ?
Looks like
OK
But currently this means in PUT you need to add in body the required
fields (even when unchanged) and the fields you want to change.
Missing fields are kept unchanged right ?
So there is no way to blank a field ?
The need was updating patron expiration date.
So maybe better create a
When we decided to implement the RESTful API, we agreed PUT is for
'replacing' resources, and PATCH for updating selected pieces of them.
I personally never managed to wrap my mind around PATCH and how to validate
what tiny bit is allowed to be patched or not. As OpenAPIv2 is not that
flexible.