Rest/Api v9.15/v4: Patch "api/admin/users/{userId}" key 'status' is required
Defect Logged
Hi,
according to the documentation, the “status” field is not mandatory, but it is if you use the API for a user update => https://developers.yellowfinbi.com/dev/api-docs/current/#operation/updateUserAdmin
If the “status” key is omitted in json (as in the documentation), a zero value is written to the database. This means that the data record is broken.
Personally, I think the documentation is correct, because if I don't want to change the status during an update, I don't need to know the current status in Yellowfin and set it again. That seems unnecessary to me. I therefore consider it to be another API error.
:) Stefan - YF 9.15, API 4.0
Hi Stefan,
I hope you're doing well. Thanks for noticing this quirk and bringing it to our attention.
In your testing, was the user currently ACTIVE or INACTIVE or some other status? For you, did it matter what was the current status of the user when the zero value was written or was the record broken no matter the current status of the user?
Kind regards,
Chris
Hi Stefan,
I hope you're doing well. Thanks for noticing this quirk and bringing it to our attention.
In your testing, was the user currently ACTIVE or INACTIVE or some other status? For you, did it matter what was the current status of the user when the zero value was written or was the record broken no matter the current status of the user?
Kind regards,
Chris
Replies have been locked on this page!