POST api/CustomerResponse/UpsertCustomerResponse

Request Information

URI Parameters

None.

Body Parameters

Collection of UpsertCustomerResponseCommandDto
NameDescriptionTypeAdditional information
ContestId

globally unique identifier

None.

CustomerId

globally unique identifier

None.

UserId

globally unique identifier

None.

QuestionId

globally unique identifier

None.

Options

Collection of QuestionResponseOptions

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ContestId": "1666b2ad-e607-448d-be7b-523392ecf3f2",
    "CustomerId": "db943d73-69ea-4740-91df-c41d1de5c366",
    "UserId": "2c955d61-3889-49c7-a826-4d53e324c998",
    "QuestionId": "1d41da07-e7e2-4bdb-b037-cc9f21de8a84",
    "Options": [
      {
        "OptionText": "sample string 1",
        "OptionId": "2a06482a-2ea8-4884-a4a4-8816448a0a79",
        "Sequence": 2,
        "Name": "sample string 3",
        "NameImage": "sample string 4"
      },
      {
        "OptionText": "sample string 1",
        "OptionId": "2a06482a-2ea8-4884-a4a4-8816448a0a79",
        "Sequence": 2,
        "Name": "sample string 3",
        "NameImage": "sample string 4"
      }
    ]
  },
  {
    "ContestId": "1666b2ad-e607-448d-be7b-523392ecf3f2",
    "CustomerId": "db943d73-69ea-4740-91df-c41d1de5c366",
    "UserId": "2c955d61-3889-49c7-a826-4d53e324c998",
    "QuestionId": "1d41da07-e7e2-4bdb-b037-cc9f21de8a84",
    "Options": [
      {
        "OptionText": "sample string 1",
        "OptionId": "2a06482a-2ea8-4884-a4a4-8816448a0a79",
        "Sequence": 2,
        "Name": "sample string 3",
        "NameImage": "sample string 4"
      },
      {
        "OptionText": "sample string 1",
        "OptionId": "2a06482a-2ea8-4884-a4a4-8816448a0a79",
        "Sequence": 2,
        "Name": "sample string 3",
        "NameImage": "sample string 4"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfUpsertCustomerResponseCommandDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Modules.CustomerResponseMoule.Model">
  <UpsertCustomerResponseCommandDto>
    <ContestId>1666b2ad-e607-448d-be7b-523392ecf3f2</ContestId>
    <CustomerId>db943d73-69ea-4740-91df-c41d1de5c366</CustomerId>
    <Options>
      <QuestionResponseOptions>
        <Name>sample string 3</Name>
        <NameImage>sample string 4</NameImage>
        <OptionId>2a06482a-2ea8-4884-a4a4-8816448a0a79</OptionId>
        <OptionText>sample string 1</OptionText>
        <Sequence>2</Sequence>
      </QuestionResponseOptions>
      <QuestionResponseOptions>
        <Name>sample string 3</Name>
        <NameImage>sample string 4</NameImage>
        <OptionId>2a06482a-2ea8-4884-a4a4-8816448a0a79</OptionId>
        <OptionText>sample string 1</OptionText>
        <Sequence>2</Sequence>
      </QuestionResponseOptions>
    </Options>
    <QuestionId>1d41da07-e7e2-4bdb-b037-cc9f21de8a84</QuestionId>
    <UserId>2c955d61-3889-49c7-a826-4d53e324c998</UserId>
  </UpsertCustomerResponseCommandDto>
  <UpsertCustomerResponseCommandDto>
    <ContestId>1666b2ad-e607-448d-be7b-523392ecf3f2</ContestId>
    <CustomerId>db943d73-69ea-4740-91df-c41d1de5c366</CustomerId>
    <Options>
      <QuestionResponseOptions>
        <Name>sample string 3</Name>
        <NameImage>sample string 4</NameImage>
        <OptionId>2a06482a-2ea8-4884-a4a4-8816448a0a79</OptionId>
        <OptionText>sample string 1</OptionText>
        <Sequence>2</Sequence>
      </QuestionResponseOptions>
      <QuestionResponseOptions>
        <Name>sample string 3</Name>
        <NameImage>sample string 4</NameImage>
        <OptionId>2a06482a-2ea8-4884-a4a4-8816448a0a79</OptionId>
        <OptionText>sample string 1</OptionText>
        <Sequence>2</Sequence>
      </QuestionResponseOptions>
    </Options>
    <QuestionId>1d41da07-e7e2-4bdb-b037-cc9f21de8a84</QuestionId>
    <UserId>2c955d61-3889-49c7-a826-4d53e324c998</UserId>
  </UpsertCustomerResponseCommandDto>
</ArrayOfUpsertCustomerResponseCommandDto>

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 'IList`1'.

Response Information

Resource Description

ResponseDto
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

CustomerId

globally unique identifier

None.

Token

string

None.

Message

string

None.

ErrorMessage

string

None.

MessageFr

string

None.

ResponseData

string

None.

NovaAPIId

string

None.

IsSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "UserId": "03dcdcf3-e01a-48b9-92c7-d0c42a681633",
  "CustomerId": "3215ea2d-7de8-4386-bc14-3f0ab02fab79",
  "Token": "sample string 3",
  "Message": "sample string 4",
  "ErrorMessage": "sample string 5",
  "MessageFr": "sample string 6",
  "ResponseData": "sample string 7",
  "NovaAPIId": "sample string 8",
  "IsSuccess": true
}

application/xml, text/xml

Sample:
<ResponseDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Modules.CustomerModule.Model">
  <CustomerId>3215ea2d-7de8-4386-bc14-3f0ab02fab79</CustomerId>
  <ErrorMessage>sample string 5</ErrorMessage>
  <IsSuccess>true</IsSuccess>
  <Message>sample string 4</Message>
  <MessageFr>sample string 6</MessageFr>
  <NovaAPIId>sample string 8</NovaAPIId>
  <ResponseData>sample string 7</ResponseData>
  <Token>sample string 3</Token>
  <UserId>03dcdcf3-e01a-48b9-92c7-d0c42a681633</UserId>
</ResponseDto>