Users
Name | Description |
---|---|
token | token |
user[current_phone] | Current phone |
user[requested_phone] | Requested phone |
user[email] |
Content-Type: application/json Host: example.org Cookie:
POST /api/v1/users/request_phone_change
{"user":{"current_phone":"+331234567890","requested_phone":"+330987654321","email":"my@email.com"}}
X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-Download-Options: noopen X-Permitted-Cross-Domain-Policies: none Referrer-Policy: strict-origin-when-cross-origin Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET,POST,PUT,PATCH,DELETE Access-Control-Allow-Headers: Origin,Accept,Content-Type,X-Requested-With,X-CSRF-Token,X-API-KEY Content-Type: application/json; charset=utf-8 ETag: W/"9102d5d4ab64dabf0c98a4daae1357bc" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 19184140-cc34-4abe-b346-b73063c3d73e X-Runtime: 0.021943 Content-Length: 98
200 OK
{ "code": "SENT", "message": "Votre demande de changement de numéro de téléphone a été envoyée" }