Locations
Update a location
Partially update a location in the authorized organization. Aggregation not available for locations.
PATCH
/
v2
/
organizations
/
{organization_id}
/
locations
/
{location_id}
curl --request PATCH \
--url https://api.flexxible.net/v2/organizations/{organization_id}/locations/{location_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "HQ Renovado",
"address": "Calle Ejemplo 2"
}
'{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "HQ Renovado",
"address": "Calle Ejemplo 2",
"latitude": 41.3874,
"longitude": 2.1686,
"organization_id": "507f1f77bcf86cd799439011"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Organization identifier.
Required string length:
24Pattern:
^[0-9a-f]{24}$Location identifier.
Body
application/json
Partial update body of location. All fields are optional.
Response
Location updated successfully.
Location Id (FWS Location.Oid).
Location name.
Location address.
Location latitude.
Location longitude.
Associated Portal organization Id.
Required string length:
24Pattern:
^[0-9a-f]{24}$⌘I
curl --request PATCH \
--url https://api.flexxible.net/v2/organizations/{organization_id}/locations/{location_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "HQ Renovado",
"address": "Calle Ejemplo 2"
}
'{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "HQ Renovado",
"address": "Calle Ejemplo 2",
"latitude": 41.3874,
"longitude": 2.1686,
"organization_id": "507f1f77bcf86cd799439011"
}