地點 Location
提供地點清單及細節API。
Get Location List
This API retrieves a list of locations, including the location ID, location name, organization ID, coordinates, and timezone. You can also filter the results by specifying an organization ID.
Endpoint: GET /locations
Query Parameters:
organization_id
Filter the locations based on organization ID.
integer
No
-
ids
Fetch specific ids.
string
No
-
offset
The offset for pagination.
integer
No
0
limit
The maximum number of locations returned.
integer
No
100
Example Request:
Example Response:
Response Fields:
Field
Description
Type
id
The unique identifier for the location.
integer
name
The name of the location.
string
timezone
The timezone of the location.
string
organization_id
The ID of the organization the location belongs to.
integer
coordinates
The latitude and longitude of the location.
object
Get Location Details
This API retrieves the details of a specific location by location ID, including location name, organization ID, coordinates, timezone.
Endpoint: GET /locations/:location_id
Path Parameters:
location_id
The unique identifier for the location.
integer
Required
Example Request:
Example Response:
Response Fields:
id
The unique identifier for the location.
integer
name
The name of the location.
string
timezone
The timezone of the location.
string
organization_id
The ID of the organization the location belongs to.
integer
coordinates
The latitude and longitude of the location.
object
Last updated