Email Validation:POST
(Difference between revisions)
				
																
				
				
								
				| Mike.robski  (Talk | contribs) m (1 revision: Release 95) |  (→Status Code) | ||
| Line 38: | Line 38: | ||
| : Success. | : Success. | ||
| − | ;  | + | ; 400 Bad Request | 
| : One of the required attributes is missing from the request body. | : One of the required attributes is missing from the request body. | ||
Revision as of 07:25, 5 August 2014
POST /validations/email
Validate a registered email.
| Contents | 
Request
POST /validations/email/
Parameters
None.
URI Parameters
None.
Request Headers
- Content-Type
- application/json
Request Body
{
  "authString": "{authentication_token}",
  "v": "{initialization_vector}"
}
 
Parameters
- authString - string
- Authentication token
- v - string
- Initialization vector
Response
Status Code
- 204 No Content
- Success.
- 400 Bad Request
- One of the required attributes is missing from the request body.
- 409 Conflict
- The supplied authentication token is invalid or expired.
Example
Success scenario
Request
POST /validations/email
Content-Type: application/json
{"authString": "{authentication_token}", "v": "{authentication_vector}"}
 
Response
204 No Content
Invalid authentication token scenario
Request
POST /validations/email
Content-Type: application/json
{"authString": "{invalid_authentication_token}", "v": "{authentication_vector}"}
 
Response
409 Conflict
See also
