POST api/v2/Version2.AutoSaveResponses

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

AutoSaveInputModel
NameDescriptionTypeAdditional information
LoginUserID

string

None.

AuthenticationKey

string

None.

DeviceType

string

None.

DeviceToken

string

None.

TemplateID

string

None.

PartnerID

string

None.

MCRoleID

string

None.

ComponentID

string

None.

XMLResponses

Collection of AutoSaveXMLResponsesModel

None.

Request Formats

application/json, text/json

Sample:
{
  "LoginUserID": "sample string 1",
  "AuthenticationKey": "sample string 2",
  "DeviceType": "sample string 3",
  "DeviceToken": "sample string 4",
  "TemplateID": "sample string 5",
  "PartnerID": "sample string 6",
  "MCRoleID": "sample string 7",
  "ComponentID": "sample string 8",
  "XMLResponses": [
    {
      "ComponentId": "sample string 1",
      "ChoiceId": "sample string 2",
      "ResponseType": "sample string 3",
      "Response": "sample string 4",
      "Rating": "sample string 5"
    },
    {
      "ComponentId": "sample string 1",
      "ChoiceId": "sample string 2",
      "ResponseType": "sample string 3",
      "Response": "sample string 4",
      "Rating": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<MCObjects.AutoSaveInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MC.Entity.v2">
  <AuthenticationKey>sample string 2</AuthenticationKey>
  <ComponentID>sample string 8</ComponentID>
  <DeviceToken>sample string 4</DeviceToken>
  <DeviceType>sample string 3</DeviceType>
  <LoginUserID>sample string 1</LoginUserID>
  <MCRoleID>sample string 7</MCRoleID>
  <PartnerID>sample string 6</PartnerID>
  <TemplateID>sample string 5</TemplateID>
  <XMLResponses>
    <MCObjects.AutoSaveXMLResponsesModel>
      <ChoiceId>sample string 2</ChoiceId>
      <ComponentId>sample string 1</ComponentId>
      <Rating>sample string 5</Rating>
      <Response>sample string 4</Response>
      <ResponseType>sample string 3</ResponseType>
    </MCObjects.AutoSaveXMLResponsesModel>
    <MCObjects.AutoSaveXMLResponsesModel>
      <ChoiceId>sample string 2</ChoiceId>
      <ComponentId>sample string 1</ComponentId>
      <Rating>sample string 5</Rating>
      <Response>sample string 4</Response>
      <ResponseType>sample string 3</ResponseType>
    </MCObjects.AutoSaveXMLResponsesModel>
  </XMLResponses>
</MCObjects.AutoSaveInputModel>

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 'AutoSaveInputModel'.

Response Information

Resource Description

MessageCodes
NameDescriptionTypeAdditional information
Result

string

None.

Message

string

None.

MessageCode

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": "sample string 1",
  "Message": "sample string 2",
  "MessageCode": "sample string 3"
}

application/xml, text/xml

Sample:
<MCObjects.MessageCodes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MC.Entity.v2">
  <Message>sample string 2</Message>
  <MessageCode>sample string 3</MessageCode>
  <Result>sample string 1</Result>
</MCObjects.MessageCodes>