v1

latestOpenAPI 3.0.12026-07-245277551.2 MB
Market Segmentation

Create a new Market Segmentation Segment.

post/market-segmentation/v1/segments

Headers

x-property-idstring required
Example:1,2,3

A numeric, comma-separated string representing the property IDs, sent in the header.

Request body

groupIdstring required

Group ID.

namestring required

Segment name.

codestring required

Segment code.

descriptionstring required

Segment description.

isEnabledboolean required

Is Segment enabled?.

ratePlanIdsstring[] required

List of Rate Plan IDs.

Example request

{
  "groupId": "1-b",
  "name": "Abc",
  "code": "1000",
  "description": "This is a Segment",
  "isEnabled": true,
  "ratePlanIds": [
    "1-a",
    "2-b",
    "3-c"
  ]
}

Response

Created Market Segmentation Segment.

idstring
groupIdstring
namestring
codestring
descriptionstring
isEnabledboolean
isDefaultboolean
ratePlanIdsstring[]
createdAtstring Y-m-d\TH:i:sP
updatedAtstring Y-m-d\TH:i:sP nullable
canEditstring[]
canDeleteboolean
canDisableboolean