Update user email address

I am trying to update the user email address using the @PATCH ‘/api/v2/users/user_id’.
It is returning “Sandbox Error: Failed to connect to {sqlserveraddress}:1433 - getaddrinfo ENOTFOUND {sqlserveraddress}” this error.

Hi @nishantkcmk12,

Welcome to the Auth0 Community!

Can you please post a code snippet including how you are making this request. In addition, DM me the name of the domain you are making the request to, please take it directly from your config file.

Hi @dan.woda
I was running through postman.
URL: https://dev-cev2pi6j.us.auth0.com/api/v2/users/{{user_id}}
Method: PATCH
“email”: “john.doe@gmail.com

Authorization: Bearer {{auth_token}}

Note: Here token is generated from the mangement api-
URL: https://dev-cev2pi6j.us.auth0.com/oauth/token

I don’t think a pipe | is URL safe. Can you try to URL encode the pipe and see if that fixes it?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.