v1
latestOpenAPI 3.0.12026-07-245752052.0 MBlocations
Update multiple locations and replace their Company Attributes with the payload
Updates multiple Locations and upserts their Company Attributes. The provided customAttributesPayload replaces the entire set of attributes attached to each location: omit the field to leave existing attributes unchanged; provide an empty array ([]) to remove all attributes from the location. Values must match the attribute data type configured for the company attribute.
patch/api/serviceworkforce/processes/locations/custom_attributes
Request body
Example request
[
{
"locationUuid": "123e4567-e89b-12d3-a456-426614174000",
"locationPayload": {
"description": "Updated description"
},
"customAttributesPayload": [
{
"attribute": "location_type",
"value": "Retail"
},
{
"attribute": "has_parking",
"value": false
}
]
}
]Response
Updated Successfully