Auth0 Home Blog Docs

Creating an existing user returns status 201

When I send the following body to the endpoint I receive a 201 created code even when the user already exists. Using the connection: “Username-Password-Authentication” I will receive a 409 if the user exists. Is this expected behavior? It doesn’t make sense to me.

{ "email": "", "user_metadata": {}, "blocked": false, "email_verified": false, "app_metadata": {}, "given_name": "John", "family_name": "Doe", "name": "John Doe", "nickname": "Johnny", "picture": "", "connection": "email", "verify_email": true }