Create a Segment

POST {{baseUrl}}/api/Segment

Request Body

{"name"=>"<string>", "code"=>"<string>", "communicationId"=>"<integer>", "description"=>"<string>", "totalContacts"=>"<integer>", "contactQueryId"=>"<integer>", "costPerContact"=>"<double>", "packageCode"=>"<string>", "packageDescription"=>"<string>", "receiptSegmentId"=>"<integer>", "segmentOrganizerId"=>"<integer>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;communicationId&quot;:&quot;\u003cinteger\u003e&quot;,&quot;communicationName&quot;:&quot;\u003cstring\u003e&quot;,&quot;campaignId&quot;:&quot;\u003cinteger\u003e&quot;,&quot;campaignName&quot;:&quot;\u003cstring\u003e&quot;,&quot;segmentOrganizerId&quot;:&quot;\u003cinteger\u003e&quot;}