POST api/upload/challenges

Upload Challenges Data.

Request Information

URI Parameters

None.

Body Parameters

DXChallenges
NameDescriptionTypeAdditional information
TokenGuidId

User GUID - TokenGuidId is a 128-bit globally unique identifier. It is a combination of letters and numbers.

string

Required

String length: inclusive between 36 and 38

PayLoad

Collection of Challenges data goes here.

Collection of Challenges

None.

Request Formats

application/json, text/json

Sample:
{
  "PayLoad": [
    {
      "Action": "sample string 1",
      "IntVoterId": 2,
      "VoterId": 3,
      "EID": 4,
      "PPId": 5,
      "ChallengerIntVoterId": 6,
      "ChallengerPhoneNumber": "sample string 7",
      "Details": "sample string 8",
      "Reason1": "sample string 9",
      "Reason2": "sample string 10",
      "Reason3": "sample string 11",
      "Reason4": "sample string 12",
      "LaptopId": 13
    },
    {
      "Action": "sample string 1",
      "IntVoterId": 2,
      "VoterId": 3,
      "EID": 4,
      "PPId": 5,
      "ChallengerIntVoterId": 6,
      "ChallengerPhoneNumber": "sample string 7",
      "Details": "sample string 8",
      "Reason1": "sample string 9",
      "Reason2": "sample string 10",
      "Reason3": "sample string 11",
      "Reason4": "sample string 12",
      "LaptopId": 13
    }
  ],
  "TokenGuidId": "sample string 1"
}

application/xml, text/xml

Sample:
<DXChallenges xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PrecinctAtlasWeb.API.Models.Upload">
  <TokenGuidId xmlns="http://schemas.datacontract.org/2004/07/PrecinctAtlasWeb.API.Models">sample string 1</TokenGuidId>
  <PayLoad>
    <Challenges>
      <Action>sample string 1</Action>
      <ChallengerIntVoterId>6</ChallengerIntVoterId>
      <ChallengerPhoneNumber>sample string 7</ChallengerPhoneNumber>
      <Details>sample string 8</Details>
      <EID>4</EID>
      <IntVoterId>2</IntVoterId>
      <LaptopId>13</LaptopId>
      <PPId>5</PPId>
      <Reason1>sample string 9</Reason1>
      <Reason2>sample string 10</Reason2>
      <Reason3>sample string 11</Reason3>
      <Reason4>sample string 12</Reason4>
      <VoterId>3</VoterId>
    </Challenges>
    <Challenges>
      <Action>sample string 1</Action>
      <ChallengerIntVoterId>6</ChallengerIntVoterId>
      <ChallengerPhoneNumber>sample string 7</ChallengerPhoneNumber>
      <Details>sample string 8</Details>
      <EID>4</EID>
      <IntVoterId>2</IntVoterId>
      <LaptopId>13</LaptopId>
      <PPId>5</PPId>
      <Reason1>sample string 9</Reason1>
      <Reason2>sample string 10</Reason2>
      <Reason3>sample string 11</Reason3>
      <Reason4>sample string 12</Reason4>
      <VoterId>3</VoterId>
    </Challenges>
  </PayLoad>
</DXChallenges>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Success status and message

ReturnMessage
NameDescriptionTypeAdditional information
IsSuccessStatusCode

boolean

None.

StatusCode

HttpStatusCode

None.

Message

Collection of string

None.

ErrorType

string

None.

ErrorCode

string

None.

PayLoadItemCount

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccessStatusCode": false,
  "StatusCode": 100,
  "Message": [
    "sample string 1",
    "sample string 2"
  ],
  "ErrorType": "sample string 1",
  "ErrorCode": "sample string 2",
  "PayLoadItemCount": 1
}

application/xml, text/xml

Sample:
<ReturnMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PrecinctAtlasWeb.API.Models">
  <ErrorCode>sample string 2</ErrorCode>
  <ErrorType>sample string 1</ErrorType>
  <Message xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Message>
  <PayLoadItemCount>1</PayLoadItemCount>
  <StatusCode>Continue</StatusCode>
</ReturnMessage>