POST api/CreateSegment

Request Information

URI Parameters

None.

Body Parameters

SegmentVm
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Remark

string

None.

EmailCount

integer

None.

MobileCount

integer

None.

CreatedAt

date

None.

UpdatedAt

date

None.

SegmentContacts

Collection of SegmentContactVm

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "Remark": "sample string 3",
  "EmailCount": 1,
  "MobileCount": 1,
  "CreatedAt": "2025-12-07T14:39:45.7527011Z",
  "UpdatedAt": "2025-12-07T14:39:45.7527011Z",
  "SegmentContacts": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "ContactCC": "sample string 3",
      "Contact": "sample string 4",
      "Email": "sample string 5",
      "IsMobileVerified": true,
      "IsEmailVerified": true,
      "IsMobile": true,
      "IsEmail": true,
      "SegmentId": 1
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "ContactCC": "sample string 3",
      "Contact": "sample string 4",
      "Email": "sample string 5",
      "IsMobileVerified": true,
      "IsEmailVerified": true,
      "IsMobile": true,
      "IsEmail": true,
      "SegmentId": 1
    }
  ]
}

application/xml, text/xml

Sample:
<SegmentVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Models.CampaignModels">
  <CreatedAt>2025-12-07T20:09:45.7527011+05:30</CreatedAt>
  <EmailCount>1</EmailCount>
  <Id>1</Id>
  <MobileCount>1</MobileCount>
  <Name>sample string 2</Name>
  <Remark>sample string 3</Remark>
  <SegmentContacts>
    <SegmentContactVm>
      <Contact>sample string 4</Contact>
      <ContactCC>sample string 3</ContactCC>
      <Email>sample string 5</Email>
      <Id>1</Id>
      <IsEmail>true</IsEmail>
      <IsEmailVerified>true</IsEmailVerified>
      <IsMobile>true</IsMobile>
      <IsMobileVerified>true</IsMobileVerified>
      <Name>sample string 2</Name>
      <SegmentId>1</SegmentId>
    </SegmentContactVm>
    <SegmentContactVm>
      <Contact>sample string 4</Contact>
      <ContactCC>sample string 3</ContactCC>
      <Email>sample string 5</Email>
      <Id>1</Id>
      <IsEmail>true</IsEmail>
      <IsEmailVerified>true</IsEmailVerified>
      <IsMobile>true</IsMobile>
      <IsMobileVerified>true</IsMobileVerified>
      <Name>sample string 2</Name>
      <SegmentId>1</SegmentId>
    </SegmentContactVm>
  </SegmentContacts>
  <UpdatedAt>2025-12-07T20:09:45.7527011+05:30</UpdatedAt>
</SegmentVm>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SegmentVm'.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Description

string

None.

Data

Object

None.

Count

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Description": "sample string 3",
  "Data": {},
  "Count": 5
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Models">
  <Count>5</Count>
  <Data />
  <Description>sample string 3</Description>
  <Message>sample string 2</Message>
  <Success>true</Success>
</Response>