Changing status of trashed user to active from api

Hi

I am trying to update an trashed user to status from pending deletion to Active from api.
Whenever i am trying to update an status from api is returning an 200 ok but still the user is shown in trash user.

You can’t use AdminAPI to remove a user from the trash/remove from pending deletion, only to change applied status active, bypass, or disabled.

You need to log into the Duo Admin Panel and restore them from the UI.