POST api/PromotionalContent/Promotions
Request Information
URI Parameters
None.
Body Parameters
PromotionalContentName | Description | Type | Additional 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:11:52.176197-04:00", "endDate": "2025-04-26T03:11:52.176197-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:11:52.176197-04:00","endDate":"2025-04-26T03:11:52.176197-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:11:52.176197-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:11:52.176197-04:00</startDate> </PromotionalContent>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.