Create a new location
POST
/api/organizations/{organization_id}/locations
locations
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/organizations//locations' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "San Francisco Office",
"website": "www.example-sf.com",
"country": "US",
"state": "CA",
"city": "San Francisco",
"addressLine1": "123 Market St",
"addressLine2": "Suite 100",
"zipCode": 94105,
"externalId": "sf_office_1",
"longitude": "-122.406417",
"latitude": "37.785834",
"clock_in_distance_centimeters": 5000,
"clock_out_distance_centimeters": 5000,
"break_start_distance_centimeters": 3000,
"break_end_distance_centimeters": 3000
}'
Response Response Example
201 - Success
{
"id": "loc_001",
"name": "San Francisco Office",
"website": "www.example-sf.com",
"country": "US",
"state": "CA",
"city": "San Francisco",
"addressLine1": "123 Market St",
"addressLine2": "Suite 100",
"zipCode": 94105,
"externalId": "sf_office_1",
"longitude": "-122.406417",
"latitude": "37.785834",
"clock_in_distance_centimeters": 5000,
"clock_out_distance_centimeters": 5000,
"break_start_distance_centimeters": 3000,
"break_end_distance_centimeters": 3000,
"organizationId": "org_12345",
"active": true,
"createdAt": "2023-10-27T10:00:00Z",
"updatedAt": "2023-10-27T10:00:00Z",
"deletedAt": null
}
Request
Path Params
organization_id
string
required
Example:
org_12345
Body Params application/json