POST api/Offer/UploadOfferCodeFileData

Request Information

URI Parameters

None.

Body Parameters

ImportOfferCodeFileMappedViewModel
NameDescriptionTypeAdditional information
MappedFieldData

Collection of MappedOfferCodeFieldData

Required

FilePath

string

Required

AccountId

string

Required

UserId

string

Required

OfferId

string

Required

ParentAccountId

string

Required

Request Formats

application/json, text/json

Sample:
{
  "MappedFieldData": [
    {
      "MindMeFieldName": "sample string 1",
      "MappedFieldName": "sample string 2",
      "DonotImport": true
    },
    {
      "MindMeFieldName": "sample string 1",
      "MappedFieldName": "sample string 2",
      "DonotImport": true
    }
  ],
  "FilePath": "sample string 1",
  "AccountId": "sample string 2",
  "UserId": "sample string 3",
  "OfferId": "sample string 4",
  "ParentAccountId": "sample string 5"
}

application/xml, text/xml

Sample:
<ImportOfferCodeFileMappedViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.Offer">
  <AccountId>sample string 2</AccountId>
  <FilePath>sample string 1</FilePath>
  <MappedFieldData xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Shared.Common.Models">
    <d2p1:MappedOfferCodeFieldData>
      <d2p1:DonotImport>true</d2p1:DonotImport>
      <d2p1:MappedFieldName>sample string 2</d2p1:MappedFieldName>
      <d2p1:MindMeFieldName>sample string 1</d2p1:MindMeFieldName>
    </d2p1:MappedOfferCodeFieldData>
    <d2p1:MappedOfferCodeFieldData>
      <d2p1:DonotImport>true</d2p1:DonotImport>
      <d2p1:MappedFieldName>sample string 2</d2p1:MappedFieldName>
      <d2p1:MindMeFieldName>sample string 1</d2p1:MindMeFieldName>
    </d2p1:MappedOfferCodeFieldData>
  </MappedFieldData>
  <OfferId>sample string 4</OfferId>
  <ParentAccountId>sample string 5</ParentAccountId>
  <UserId>sample string 3</UserId>
</ImportOfferCodeFileMappedViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.