Update shift locations
This endpoint updates existing shift locations, matched by their Vome ID. Only the fields you send are changed.
An id is required on every entry, and must belong to your organization. address cannot be set to an empty value.
Endpoint
PUT api/shift-locations/bulk-update/Example Request Payload
{
"allow_partial": false,
"shift_locations": [
{
"id": "6f3b1c2a-9a1e-4a3f-9d21-0f0a2f5c77aa",
"meeting_place": "Loading dock, east side"
},
{
"id": "9d4c2e7b-1a2b-4c3d-8e9f-0a1b2c3d4e5f",
"address": "12 Harbour Road, Boston, MA, USA",
"latitude_longitude": ["42.3600825", "-71.0588801"]
}
]
}Behavior
Omitting a field leaves it unchanged.
Changing the address does not move the pin on its own. Send
latitude_longitudealongside it so the location stays findable on a map.Shifts already pointing at this location pick up the change, because they reference it by ID.