POST api/Contentions

Request Information

URI Parameters

None.

Body Parameters

PostContention
NameDescriptionTypeAdditional information
SourceContentionId

globally unique identifier

None.

CampaignId

globally unique identifier

None.

CampaignGroupId

globally unique identifier

None.

ScanCode

string

String length: inclusive between 0 and 200

NumberOfSerialNumbers

integer

Range: inclusive between 1 and 2147483647

Name

string

Required

String length: inclusive between 0 and 100

Remarks

string

String length: inclusive between 0 and 400

Text

string

Required

String length: inclusive between 0 and 150

Start

date

None.

End

date

None.

AnswerType

ContentionAnswerType

None.

PublisherId

globally unique identifier

None.

DeliveryCountryCode

string

Required

Explanation

string

None.

Url

string

None.

Image

Collection of byte

None.

ImageUrl

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SourceContentionId": "214d84b8-f2d9-4cc7-974a-6574cd03a67e",
  "CampaignId": "86439eee-3589-4912-bc2a-12828d256b8e",
  "CampaignGroupId": "f64ba021-29dd-4036-a35b-edc1cbbb957e",
  "ScanCode": "sample string 3",
  "NumberOfSerialNumbers": 4,
  "Name": "sample string 5",
  "Remarks": "sample string 6",
  "Text": "sample string 7",
  "Start": "2022-05-07T16:52:13.9796957+00:00",
  "End": "2022-05-07T16:52:13.9796957+00:00",
  "AnswerType": 0,
  "PublisherId": "c223b59c-aec6-44c7-bc90-77c7ab829370",
  "DeliveryCountryCode": "sample string 10",
  "Explanation": "sample string 11",
  "Url": "sample string 12",
  "Image": "QEA=",
  "ImageUrl": "sample string 13"
}

application/xml, text/xml

Sample:
<PostContention xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <SourceContentionId>214d84b8-f2d9-4cc7-974a-6574cd03a67e</SourceContentionId>
  <CampaignId>86439eee-3589-4912-bc2a-12828d256b8e</CampaignId>
  <CampaignGroupId>f64ba021-29dd-4036-a35b-edc1cbbb957e</CampaignGroupId>
  <ScanCode>sample string 3</ScanCode>
  <NumberOfSerialNumbers>4</NumberOfSerialNumbers>
  <Name>sample string 5</Name>
  <Remarks>sample string 6</Remarks>
  <Text>sample string 7</Text>
  <Start>2022-05-07T16:52:13.9796957+00:00</Start>
  <End>2022-05-07T16:52:13.9796957+00:00</End>
  <AnswerType>None</AnswerType>
  <PublisherId>c223b59c-aec6-44c7-bc90-77c7ab829370</PublisherId>
  <DeliveryCountryCode>sample string 10</DeliveryCountryCode>
  <Explanation>sample string 11</Explanation>
  <Url>sample string 12</Url>
  <Image>QEA=</Image>
  <ImageUrl>sample string 13</ImageUrl>
</PostContention>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IContention
NameDescriptionTypeAdditional information
CampaignId

globally unique identifier

None.

CampaignGroupId

globally unique identifier

None.

BarcodeId

globally unique identifier

None.

CreatorUserId

string

None.

Name

string

None.

Version

integer

None.

Remarks

string

None.

Enabled

boolean

None.

Start

date

None.

Created

date

None.

LastModified

date

None.

PublisherId

globally unique identifier

None.

DeliveryCountryCode

string

None.

Response Formats

application/json, text/json

Sample:

Sample not available.