Email Validation:POST
From Hostway API Documentation
(Difference between revisions)
(→Status Code) |
Mike.robski (Talk | contribs) m (1 revision: Release 97) |
Latest revision as of 11:49, 20 August 2014
POST /validations/email
Validate a registered email.
Contents |
[edit] Request
POST /validations/email/
[edit] Parameters
None.
[edit] URI Parameters
None.
[edit] Request Headers
- Content-Type
- application/json
[edit] Request Body
{ "authString": "{authentication_token}", "v": "{initialization_vector}" }
[edit] Parameters
- authString - string
- Authentication token
- v - string
- Initialization vector
[edit] Response
[edit] 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.
[edit] Example
[edit] Success scenario
Request
POST /validations/email Content-Type: application/json {"authString": "{authentication_token}", "v": "{authentication_vector}"}
Response
204 No Content
[edit] Invalid authentication token scenario
Request
POST /validations/email Content-Type: application/json {"authString": "{invalid_authentication_token}", "v": "{authentication_vector}"}
Response
409 Conflict
[edit] See also