Skip to main content
POST
/
user
/
update-location
Update user location
curl --request POST \
  --url https://jamquest-dev.techboo.net/api/v1/user/update-location \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "latitude": 0,
  "longitude": 0,
  "radius": 1,
  "city": "<string>",
  "state": "<string>",
  "country": "<string>"
}
'
{
  "status": "ok",
  "message": "<string>",
  "data": {
    "user": {
      "id": 123,
      "name": "<string>",
      "email": "[email protected]",
      "phone": "<string>",
      "is_dj": true,
      "wallet_balance": 123,
      "fee_upcoming_artist": 123,
      "fee_popular_song": 123,
      "online": 123,
      "played": 123,
      "city": "<string>",
      "state": "<string>",
      "country": "<string>",
      "latitude": 123,
      "longitude": 123,
      "radius": 123,
      "email_verified": true,
      "phone_verified": true,
      "rating": 123,
      "rating_count": 123
    }
  }
}

Authorizations

Authorization
string
header
required

Access token obtained during login or registration. Use this token in the Authorization header for authenticated requests.

Body

application/json
latitude
number<float>
required

Latitude of the user's location

Required range: -90 <= x <= 90
longitude
number<float>
required

Longitude of the user's location

Required range: -180 <= x <= 180
radius
number<float>
required

Radius for nearby searches in kilometers

Required range: x >= 0
city
string
required

City of the user's location

Maximum string length: 255
state
string
required

State or region of the user's location

Maximum string length: 255
country
string
required

Country of the user's location

Maximum string length: 255

Response

Location updated successfully

status
string
Example:

"ok"

message
string
data
object