POST api/CustomerResponse/UpsertCustomerResponse
Request Information
URI Parameters
None.
Body Parameters
Collection of UpsertCustomerResponseCommandDtoName | Description | Type | Additional 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": "c8c2ee56-c06f-4caa-8a84-a1b657cb41d3", "CustomerId": "7bac31f8-f626-44bd-8381-692a4aa8b973", "UserId": "cf52ebce-0944-4d7c-ada0-f11396ee7d7f", "QuestionId": "018e8805-7ec1-4c09-98c2-abd855e2062a", "Options": [ { "OptionText": "sample string 1", "OptionId": "6b8fae75-1607-4fa2-9870-c29e104ad97c", "Sequence": 2, "Name": "sample string 3", "NameImage": "sample string 4" }, { "OptionText": "sample string 1", "OptionId": "6b8fae75-1607-4fa2-9870-c29e104ad97c", "Sequence": 2, "Name": "sample string 3", "NameImage": "sample string 4" } ] }, { "ContestId": "c8c2ee56-c06f-4caa-8a84-a1b657cb41d3", "CustomerId": "7bac31f8-f626-44bd-8381-692a4aa8b973", "UserId": "cf52ebce-0944-4d7c-ada0-f11396ee7d7f", "QuestionId": "018e8805-7ec1-4c09-98c2-abd855e2062a", "Options": [ { "OptionText": "sample string 1", "OptionId": "6b8fae75-1607-4fa2-9870-c29e104ad97c", "Sequence": 2, "Name": "sample string 3", "NameImage": "sample string 4" }, { "OptionText": "sample string 1", "OptionId": "6b8fae75-1607-4fa2-9870-c29e104ad97c", "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>c8c2ee56-c06f-4caa-8a84-a1b657cb41d3</ContestId> <CustomerId>7bac31f8-f626-44bd-8381-692a4aa8b973</CustomerId> <Options> <QuestionResponseOptions> <Name>sample string 3</Name> <NameImage>sample string 4</NameImage> <OptionId>6b8fae75-1607-4fa2-9870-c29e104ad97c</OptionId> <OptionText>sample string 1</OptionText> <Sequence>2</Sequence> </QuestionResponseOptions> <QuestionResponseOptions> <Name>sample string 3</Name> <NameImage>sample string 4</NameImage> <OptionId>6b8fae75-1607-4fa2-9870-c29e104ad97c</OptionId> <OptionText>sample string 1</OptionText> <Sequence>2</Sequence> </QuestionResponseOptions> </Options> <QuestionId>018e8805-7ec1-4c09-98c2-abd855e2062a</QuestionId> <UserId>cf52ebce-0944-4d7c-ada0-f11396ee7d7f</UserId> </UpsertCustomerResponseCommandDto> <UpsertCustomerResponseCommandDto> <ContestId>c8c2ee56-c06f-4caa-8a84-a1b657cb41d3</ContestId> <CustomerId>7bac31f8-f626-44bd-8381-692a4aa8b973</CustomerId> <Options> <QuestionResponseOptions> <Name>sample string 3</Name> <NameImage>sample string 4</NameImage> <OptionId>6b8fae75-1607-4fa2-9870-c29e104ad97c</OptionId> <OptionText>sample string 1</OptionText> <Sequence>2</Sequence> </QuestionResponseOptions> <QuestionResponseOptions> <Name>sample string 3</Name> <NameImage>sample string 4</NameImage> <OptionId>6b8fae75-1607-4fa2-9870-c29e104ad97c</OptionId> <OptionText>sample string 1</OptionText> <Sequence>2</Sequence> </QuestionResponseOptions> </Options> <QuestionId>018e8805-7ec1-4c09-98c2-abd855e2062a</QuestionId> <UserId>cf52ebce-0944-4d7c-ada0-f11396ee7d7f</UserId> </UpsertCustomerResponseCommandDto> </ArrayOfUpsertCustomerResponseCommandDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResponseDtoName | Description | Type | Additional information |
---|---|---|---|
UserId | globally unique identifier |
None. |
|
CustomerId | globally unique identifier |
None. |
|
Token | string |
None. |
|
Message | string |
None. |
|
ResponseData | string |
None. |
|
NovaAPIId | string |
None. |
|
IsSuccess | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "UserId": "ed4d8736-360a-438f-82d9-6dac5446e322", "CustomerId": "2d962f86-09be-4f84-9b6e-6382e7bba145", "Token": "sample string 3", "Message": "sample string 4", "ResponseData": "sample string 5", "NovaAPIId": "sample string 6", "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>2d962f86-09be-4f84-9b6e-6382e7bba145</CustomerId> <IsSuccess>true</IsSuccess> <Message>sample string 4</Message> <NovaAPIId>sample string 6</NovaAPIId> <ResponseData>sample string 5</ResponseData> <Token>sample string 3</Token> <UserId>ed4d8736-360a-438f-82d9-6dac5446e322</UserId> </ResponseDto>