Api::V1::UsersController API

Users

Update user address

POST /api/v1/users/:id/address

Parameters

Name Description
id Id or 'me'
token token
address[place_name] Place name
address[latitude] Latitude
address[longitude] Longitude

Request

Headers

Content-Type: application/json
Host: example.org
Cookie: 

Route

POST /api/v1/users/194/address

Body

{"token":"foobar191","address":{"place_name":"75012","latitude":48.84,"longitude":2.38}}

Response

Headers

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/"059f53713c651e2ac3ac6ddb36ab5489"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 22e1ed19-7fd4-4736-8407-2decb3bf2d08
X-Runtime: 0.026584
Content-Length: 196

Status

200 OK

Body

{
  "address": {
    "latitude": 48.84,
    "longitude": 2.38,
    "display_address": "75012",
    "position": 1
  },
  "firebase_properties": {
    "ActionZoneDep": "not_set",
    "ActionZoneCP": "not_set",
    "Goal": "no_set",
    "Interests": "none"
  }
}