---
title: "Create a new LocationGroup"
method: POST
path: "/location-groups"
tags: ["Location Groups"]
---

# Create a new LocationGroup

`POST /location-groups`

## Request

- Base URL: `https://workflows.promorepublic.com/webhook/2637089f-b543-45d0-a83e-2334aada4ead/listings/sandbox/api`
- URL: `https://workflows.promorepublic.com/webhook/2637089f-b543-45d0-a83e-2334aada4ead/listings/sandbox/api/location-groups`
- Auth: HTTP bearer

Can be used to create a new LocationGroup

## Request body `*/*`

- object: LocationGroup parameters model
  - `name` string, required: Name (String) of the LocationGroup
  - `status` 'ACTIVE' | 'DELETED': Status of the LocationGroup, defaults to "ACTIVE", supported values: ["ACTIVE"].
  - `locations` integer[]: List of location IDs (Long) that shall be assigned to the new LocationGroup.
  - `users` integer[]: List of user IDs (Long) that shall be assigned to the new LocationGroup.

## Response `200`

LocationGroup created successfully

- object
  - `status` 'SUCCESS' | 'PENDING' | 'QUOTA_LIMIT_EXCEED' | 'NOT_AUTHORIZED' | 'FORBIDDEN' | 'BAD_ACCESS_TOKEN' | 'BAD_PRIVATE_KEY' | 'BAD_PUBLIC_KEY' | 'MISSING_PARAMETER' | 'INVALID_PARAMETER' | 'WRONG_PARAMETER_TYPE' | 'CONFLICT' | 'RESOURCE_LOCKED' | 'SERVER_ERROR' | 'ERROR' | 'NOT_FOUND' | 'BAD_REQUEST' | 'USER_ERROR' | 'PARTIAL_ERROR' | 'SERVICE_TEMPORARILY_UNAVAILABLE', required
  - `message` string: (optional) Holds further information about the response
  - `warnings` string[]: (optional) Holds further warnings
  - `response` object, required: The actual response object of the response
    - `id` integer: ID of the LocationGroup.
    - `lastUpdated` string, date-time: Last updated date of the Location Group
    - `name` string: Name of the LocationGroup.
    - `status` 'ACTIVE' | 'DELETED': Status of the Location Group
    - `creator` integer
    - `salesPartner` integer
    - `locationsCount` integer
    - `locations` object[]
      - `id` integer: ID of the location
      - `name` string: Name of the location
      - `status` 'CREATED' | 'ACTIVE' | 'INACTIVE' | 'CANCELLED' | 'DELETED' | 'CLOSED': Status of the location
    - `users` object[]
      - `id` integer: ID of the user
      - `email` string: Email of the user
      - `firstName` string: First name of the user
      - `lastName` string: Last name of the user
      - `role` 'UBER_API_ADMIN' | 'API_ADMIN' | 'ADMIN' | 'ACCOUNT_MANAGER' | 'BUSINESS_MANAGER' | 'LOCATION_MANAGER' | 'BUSINESS_MANAGER_INBOX': Different roles a user account can have in the system.
      - `status` 'INVITED' | 'CREATED' | 'VERIFIED' | 'UNVERIFIED' | 'INACTIVE' | 'DELETED' | 'NO_LOGIN': User Status Enum

## Other responses

- `400`: Bad Request - The request was invalid or cannot be otherwise served
- `401`: Unauthorized - Authentication credentials are missing or invalid
- `403`: Forbidden - The request is understood, but has been refused or access is not allowed
- `404`: Not Found - The requested resource could not be found
- `409`: Conflict - The request conflicts with current state of the server

---

[API](https://skmtc.dev/promorepublic/apis/listings-api.md) - [All operations](https://skmtc.dev/promorepublic/apis/listings-api/llms.txt) - [OpenAPI document](https://skmtc.dev/promorepublic/apis/listings-api/revisions/a04c07676a6e?raw)
