Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3619

Is HTTP status 202 appropriate for account creation, while waiting for a confirmation code?

$
0
0

I have an API with a 2 step sign-up flow:

  1. user requests a new account (POST with some account information in the body)
  2. user confirms the account (POST with a verification code received via text or email)

I'm thinking the response status codes for these steps should be:

  1. 202 Accepted
  2. 201 Created

Is this an appropriate use of 202 Accepted?


Viewing all articles
Browse latest Browse all 3619

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>