POST /acc/reg/codeΒΆ

Invoke registration code.

On successfully, an message will be send to user’s email to inform about action. It contains registration code and expired date.

If code was expired, temporary account’s information can be remove and other users can register with that information.

Use that code to active account in POST /acc/reg.

POST /acc/reg/code
Content-Type: application/json

{
    "properties": {
        "email": {
            "pattern": "^[a-zA-Z0-9-._]{1,64}\\@[a-zA-Z0-9\\[]{1}[a-zA-Z0-9.-:]{1,61}[a-zA-Z0-9\\]]{1}$",
            "type": "string"
        },
        "name": {
            "pattern": "^[a-z0-9-]{2,32}$",
            "type": "string"
        },
        "phone": {
            "pattern": "^\\+[0-9]{2}\\s[0-9]{3}\\s([0-9]{3}|[0-9]{4})\\s[0-9]{4}$",
            "type": [
                "string",
                "null"
            ]
        },
        "pwd": {
            "pattern": "^.{6,32}$",
            "type": "string"
        }
    },
    "required": [
        "name",
        "email",
        "pwd"
    ],
    "type": "object"
}

HTTP/1.1 204 No Content