---
title: "Update a location group and replace its Company Attributes with the payload"
method: PATCH
path: "/api/serviceworkforce/processes/locationGroups/{locationGroupUuid}/custom_attributes"
tags: ["locationGroups"]
---

# Update a location group and replace its Company Attributes with the payload

`PATCH /api/serviceworkforce/processes/locationGroups/{locationGroupUuid}/custom_attributes`

Updates a Location Group and upserts its Company Attributes. The provided customAttributesPayload replaces the entire set of attributes attached to the location group: omit the field to leave existing attributes unchanged; provide an empty array ([]) to remove all attributes from the location group. Values must match the attribute data type configured for the company attribute.

## Path parameters

- `locationGroupUuid` string, uuid, required

## Request body

- object
  - `locationGroupPayload` LocationGroup, required
    - `uuid` string, uuid
    - `createdAt` string, date-time — Creation timestamp
    - `createdBy` string, uuid — Creator UUID
    - `lastUpdatedAt` string, date-time — Last update timestamp
    - `lastUpdatedBy` string, uuid — Last updater UUID
    - `lastUpdatedByAudience` string — Audience of last updater
    - `lastUpdatedByAudienceUuid` string, uuid — Audience UUID of last updater
    - `lastUpdatedByImpersonatedBy` string, uuid — Impersonator UUID
    - `lastUpdatedByCompanyUuid` string, uuid — Company UUID of last updater
    - `lastUpdatedByEnterpriseUuid` string, uuid — Enterprise UUID of last updater
    - `name` string, required — Location group name
    - `description` string
    - `companyUuid` string, uuid — Company UUID
    - `ownerUuid` string
    - `hireLocationGroupUuid` string
    - `parentGroupUuid` string
  - `customAttributesPayload` object[], required — Replacement list of Company Attributes to attach to the location group. Attribute may be referenced by UUID or key and value must match the attribute's configured data type. Omit the field to leave the location group's existing attributes unchanged; provide an empty array ([]) to remove all attributes from the location group.
    - `attribute` string, required — Attribute UUID or key
    - `value` unknown, required

## Response `204`

Updated Successfully

## Other responses

- `400` — default error response
- `404` — default error response

---

[API](https://skmtc.dev/fountain/apis/hire-public-api.md) · [All operations](https://skmtc.dev/fountain/apis/hire-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fountain/hire-public-api/revisions/5f406c0e9462/schema)
