---
title: "replace one locationGroup which exists or not"
method: PUT
path: "/api/serviceworkforce/locationGroups/{identifier}"
tags: ["locationGroups"]
---

# replace one locationGroup which exists or not

`PUT /api/serviceworkforce/locationGroups/{identifier}`

## Request

- Base URL: `https://services.fountain.com`
- URL: `https://services.fountain.com/api/serviceworkforce/locationGroups/{identifier}`
- Auth: HTTP bearer

Replace one locationGroup which exists or not

## Path parameters

- `identifier` string, uuid, required

## Request body

- LocationGroup
  - `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, uuid, nullable
  - `hireLocationGroupUuid` string
  - `parentGroupUuid` string

## Response `202`

locationGroup replaced. Wrapped in a JsonAPI root response.

- object
  - `data` LocationGroup
    - `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, uuid, nullable
    - `hireLocationGroupUuid` string
    - `parentGroupUuid` string
  - `meta` ResponsesPartMeta
    - `timestamp` string, date-time, required
    - `verb` 'OPTION' | 'GET' | 'PUT' | 'POST' | 'PATCH' | 'DELETE'
    - `path` string
    - `jti` string
    - `rid` string
    - `count` number
    - `capped` boolean: The server lowered filter[limit] to its ceiling. Page with filter[skip] to read past it.
    - `status` string
    - `duration` number
    - `size` number

## Other responses

- `500`: default error response

---

[API](https://skmtc.dev/fountain/apis/worker-experience-public-api.md) - [All operations](https://skmtc.dev/fountain/apis/worker-experience-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fountain/apis/worker-experience-public-api/revisions/6b9a31f79e22?raw)
