
WillS.48217 (Customer) asked a question.
I am programmatically creating and activating users by hitting the /api/v1/users endpoint. I create the user with the activate parameter set to false. The, I am hitting the /api/v1/users/${userId}/lifecycle/activate endpoint with the sendEmail parameter set to true. In my program, I get an error response from the second request, with an unknown error. The error is as follows:
"Http failure response for https://{{url}}/api/v1/users/{{user_id}}/lifecycle/activate?sendEmail=true: 0 Unknown Error"
When I hit the same activation endpoint in Postman after this, I do not get an error and it work as I expect. How should I resolve this? Let me know if I need to add more detail or clarify anything,

Status result 0 usually means that there was no response or that the connection is too slow. If this error comes up, it can be work checking the code you are using to make the API call for mistakes. In my case that prompted this question, I was not correctly adding the body to my request in TypeScript.