Set the time zone
PUT
/api/v1/location/timezone
const url = 'https://example.com/api/v1/location/timezone';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"timezone":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/location/timezone \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "timezone": "example" }'Set the caller’s confirmed time zone. The server checks the time zone name and returns the saved Location settings. Route: /api/v1/location/timezone. Inputs: . Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
timezone
required
string
Examplegenerated
{ "timezone": "example"}Responses
Section titled “Responses”Media typeapplication/json
object
enabled
required
boolean
position
record_places_on_logs
required
boolean
timezone
The confirmed User zone used when a request has no zone header.
string | null
Examplegenerated
{ "enabled": true, "position": { "approximate": true, "latitude": 1, "longitude": 1 }, "record_places_on_logs": true, "timezone": "example"}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}