Skip to content

Update Location settings

PUT
/api/v1/location
curl --request PUT \
--url https://example.com/api/v1/location \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "enabled": true, "position": { "latitude": 1, "longitude": 1 }, "record_places_on_logs": true }'

Set Location on or off and choose whether Log entries record matching Saved places. You can also set a position. Turning Location off clears the stored position. The response returns the saved settings. Route: /api/v1/location. Inputs: . Do not automatically replay this operation after an uncertain result.

Media typeapplication/json
object
enabled
required
boolean
position
One of:
object
latitude
required
number format: double
longitude
required
number format: double
record_places_on_logs
required
boolean
Examplegenerated
{
"enabled": true,
"position": {
"latitude": 1,
"longitude": 1
},
"record_places_on_logs": true
}
Media typeapplication/json
object
enabled
required
boolean
position
One of:
object
approximate
required

True only for coordinates migrated from the old rounded Auto setting.

boolean
latitude
required
number format: double
longitude
required
number format: double
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
error
required

Error details.

object
code
required

Stable machine-readable code.

string
Allowed values: bad_request unauthorized forbidden not_found conflict name_conflict_case name_too_long push_endpoint_rejected too_many_requests internal service_unavailable
details
One of:

Optional field or operation details.

object
key
additional properties
string
message
required

Safe text for logs or a user-facing error message.

string
Example
{
"error": {
"code": "bad_request"
}
}
Media typeapplication/json

The standard API error response: { "error": { ... } }.

object
error
required

Error details.

object
code
required

Stable machine-readable code.

string
Allowed values: bad_request unauthorized forbidden not_found conflict name_conflict_case name_too_long push_endpoint_rejected too_many_requests internal service_unavailable
details
One of:

Optional field or operation details.

object
key
additional properties
string
message
required

Safe text for logs or a user-facing error message.

string
Example
{
"error": {
"code": "bad_request"
}
}
Media typeapplication/json

The standard API error response: { "error": { ... } }.

object
error
required

Error details.

object
code
required

Stable machine-readable code.

string
Allowed values: bad_request unauthorized forbidden not_found conflict name_conflict_case name_too_long push_endpoint_rejected too_many_requests internal service_unavailable
details
One of:

Optional field or operation details.

object
key
additional properties
string
message
required

Safe text for logs or a user-facing error message.

string
Example
{
"error": {
"code": "bad_request"
}
}
Media typeapplication/json

The standard API error response: { "error": { ... } }.

object
error
required

Error details.

object
code
required

Stable machine-readable code.

string
Allowed values: bad_request unauthorized forbidden not_found conflict name_conflict_case name_too_long push_endpoint_rejected too_many_requests internal service_unavailable
details
One of:

Optional field or operation details.

object
key
additional properties
string
message
required

Safe text for logs or a user-facing error message.

string
Example
{
"error": {
"code": "bad_request"
}
}