Update a specific location
PATCH
/api/organizations/{organization_id}/locations/{id}
locations
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/api/organizations//locations/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Updated San Francisco Office",
"website": "www.example-sf-updated.com",
"country": "US",
"state": "CA",
"city": "San Francisco",
"addressLine1": "789 Mission St",
"addressLine2": null,
"zipCode": 94103,
"externalId": "sf_office_1_updated",
"longitude": "-122.4035",
"latitude": "37.7829",
"clock_in_distance_centimeters": 7000,
"clock_out_distance_centimeters": 7000,
"break_start_distance_centimeters": 4000,
"break_end_distance_centimeters": 4000
}'
Response Response Example
200 - Success
{
"id": "loc_001",
"name": "Updated San Francisco Office",
"website": "www.example-sf-updated.com",
"country": "US",
"state": "CA",
"city": "San Francisco",
"addressLine1": "789 Mission St",
"addressLine2": null,
"zipCode": 94103,
"externalId": "sf_office_1_updated",
"longitude": "-122.4035",
"latitude": "37.7829",
"clock_in_distance_centimeters": 7000,
"clock_out_distance_centimeters": 7000,
"break_start_distance_centimeters": 4000,
"break_end_distance_centimeters": 4000,
"organizationId": "org_12345",
"active": true,
"createdAt": "2023-10-27T10:00:00Z",
"updatedAt": "2023-10-27T12:00:00Z",
"deletedAt": null
}
Request
Path Params
organization_id
string
required
Example:
org_12345
id
string
required
Example:
loc_001
Body Params application/json