Users
Name | Description |
---|---|
token | token |
user[first_name] | First name |
user[last_name] | Last name |
user[email] | |
user[sms_code] | SMS code |
user[phone] | Phone |
user[avatar_key] | Avatar key |
user[about] | About |
user[goal] | offer_help, ask_for_help, organization |
user[interests] | Interests |
Content-Type: application/json Host: example.org Cookie:
POST /api/v1/users
{"token":"foobar180","user":{"phone":"+33612345678"}}
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/"3733ea9c9168e377d2b6c9fcbe2b5235" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 5d1eedd7-9c9e-49f9-be7c-07813c17fc31 X-Runtime: 0.017030 Content-Length: 33
201 Created
{ "user": { "phone": "+33612345678" } }