PUT api/PromotionalContent/Promotions/{promotionID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
promotionID

integer

Required

Body Parameters

PromotionalContent
NameDescriptionTypeAdditional information
promotionTitle

string

None.

promotionURL

string

None.

startDate

date

None.

endDate

date

None.

entities

Collection of Entity

None.

marketSegments

Collection of MarketSegment

None.

createdBy

string

None.

Request Formats

application/json, text/json

Sample:
{
  "promotionTitle": "sample string 1",
  "promotionURL": "sample string 2",
  "startDate": "2025-04-26T03:26:21.4055287-04:00",
  "endDate": "2025-04-26T03:26:21.4055287-04:00",
  "entities": [
    {
      "EntityID": 1,
      "EntityName": "sample string 2"
    },
    {
      "EntityID": 1,
      "EntityName": "sample string 2"
    }
  ],
  "marketSegments": [
    {
      "MarketSegmentID": 1,
      "MarketSegmentName": "sample string 2"
    },
    {
      "MarketSegmentID": 1,
      "MarketSegmentName": "sample string 2"
    }
  ],
  "createdBy": "sample string 3"
}

text/html

Sample:
{"promotionTitle":"sample string 1","promotionURL":"sample string 2","startDate":"2025-04-26T03:26:21.4055287-04:00","endDate":"2025-04-26T03:26:21.4055287-04:00","entities":[{"EntityID":1,"EntityName":"sample string 2"},{"EntityID":1,"EntityName":"sample string 2"}],"marketSegments":[{"MarketSegmentID":1,"MarketSegmentName":"sample string 2"},{"MarketSegmentID":1,"MarketSegmentName":"sample string 2"}],"createdBy":"sample string 3"}

application/xml, text/xml

Sample:
<PromotionalContent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CCAPI.Models">
  <createdBy>sample string 3</createdBy>
  <endDate>2025-04-26T03:26:21.4055287-04:00</endDate>
  <entities>
    <Entity>
      <EntityID>1</EntityID>
      <EntityName>sample string 2</EntityName>
    </Entity>
    <Entity>
      <EntityID>1</EntityID>
      <EntityName>sample string 2</EntityName>
    </Entity>
  </entities>
  <marketSegments>
    <MarketSegment>
      <MarketSegmentID>1</MarketSegmentID>
      <MarketSegmentName>sample string 2</MarketSegmentName>
    </MarketSegment>
    <MarketSegment>
      <MarketSegmentID>1</MarketSegmentID>
      <MarketSegmentName>sample string 2</MarketSegmentName>
    </MarketSegment>
  </marketSegments>
  <promotionTitle>sample string 1</promotionTitle>
  <promotionURL>sample string 2</promotionURL>
  <startDate>2025-04-26T03:26:21.4055287-04:00</startDate>
</PromotionalContent>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.