Skip to main content
POST
/
api
/
v1
/
hotel
/
hotels
/
{workspaceId}
/
location-groups
Create Location Group
curl --request POST \
  --url https://api.xenia.team/api/v1/hotel/hotels/{workspaceId}/location-groups \
  --header 'Content-Type: application/json' \
  --header 'x-client-key: <api-key>' \
  --header 'x-client-secret: <api-key>' \
  --data '{
  "name": "location test group",
  "description": "location test group name",
  "Locations": [
    "a13ddb59-3e5c-4bdd-8673-fc913b93b9db",
    "1d5ceb29-ab86-4138-ad7f-b8290b1771f5",
    "32e77f06-6cb1-4657-9310-1f4dcd902850"
  ]
}'
{
  "data": {},
  "meta": {}
}

Authorizations

x-client-key
string
header
required
x-client-secret
string
header
required

Path Parameters

workspaceId
string<uuid>
required

The workspace ID (internally known as Hotel ID).

Body

application/json
name
string
required

The name of the location group.

description
string | null

Optional description for the group.

Locations
string<uuid>[]

Array of location UUIDs to be grouped.

Response

Location group created successfully

data
object

Created location group with full details

meta
object
I