Delete user from Jira Cloud using API return 400

Hi.
We are using a Users Rest API to manage users. Creating a user is fine, but when I try to delete the user, it results in 400 Bad Request and empty errors and errorMessages.
Could you please tell me what could be causing this behavior?