device

Set the location

put/v1/phones/{id}/location

Request

  • Base URL: https://phonebox.dev
  • URL: https://phonebox.dev/v1/phones/{id}/location
  • Auth: HTTP bearer

Path parameters

idstring required

Request body

latnumber required
lngnumber required
timezone_from_locationboolean

Also set the phone's timezone to the one at this location. The default is true, so the clock matches the place.

Response

The mock location is set, and with timezone_from_location (the default) the timezone found there.

latnumber required
lngnumber required
timezonestring nullable required

The timezone set to match the location, or null when timezone_from_location was false, or the phone can't change its timezone or refused the one found.

Changes

No recorded changes to this operation across all 1 revision of this API.