POST api/PimStorefrontCategoryAssignment

Request Information

URI Parameters

None.

Body Parameters

ImportStorefrontAssignments

NameDescriptionTypeAdditional information
Assignments

Collection of StorefrontCategoryProductAssignmentImport

None.

SiteCode

string

None.

VerificationKey

string

None.

TimestampUTC

string

None.

APIUsername

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Assignments": [
    {
      "ProductCode": "sample string 1",
      "CategoryCode": "sample string 2",
      "IsPrimary": true
    },
    {
      "ProductCode": "sample string 1",
      "CategoryCode": "sample string 2",
      "IsPrimary": true
    }
  ],
  "SiteCode": "sample string 1",
  "VerificationKey": "sample string 2",
  "TimestampUTC": "sample string 3",
  "APIUsername": "sample string 4"
}

application/xml, text/xml

Sample:
<ImportStorefrontAssignments xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DECK.PIM.Domain.Models.API">
  <APIUsername>sample string 4</APIUsername>
  <Assignments>
    <StorefrontCategoryProductAssignmentImport>
      <CategoryCode>sample string 2</CategoryCode>
      <IsPrimary>true</IsPrimary>
      <ProductCode>sample string 1</ProductCode>
    </StorefrontCategoryProductAssignmentImport>
    <StorefrontCategoryProductAssignmentImport>
      <CategoryCode>sample string 2</CategoryCode>
      <IsPrimary>true</IsPrimary>
      <ProductCode>sample string 1</ProductCode>
    </StorefrontCategoryProductAssignmentImport>
  </Assignments>
  <SiteCode>sample string 1</SiteCode>
  <TimestampUTC>sample string 3</TimestampUTC>
  <VerificationKey>sample string 2</VerificationKey>
</ImportStorefrontAssignments>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GenericResponse

NameDescriptionTypeAdditional information
ResponseCode

APIResponseCodes

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseCode": 0,
  "Message": "sample string 1"
}

application/xml, text/xml

Sample:
<GenericResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DECK.Core.Common.Contracts.API">
  <Message>sample string 1</Message>
  <ResponseCode>Success</ResponseCode>
</GenericResponse>