POST v2/PromotionManagement/ValidPromotionDates

Request Information

URI Parameters

None.

Body Parameters

PromotionViewModel
NameDescriptionTypeAdditional information
Id

integer

Required

Name

string

Required

String length: inclusive between 1 and 100

Description

string

Data type: MultilineText

StartDate

date

Required

EndDate

date

Required

Image

string

None.

ImageName

string

None.

UploadedImage

ImageModel

None.

VendorId

integer

None.

PromotionType

PromotionType

None.

ScreenType

ScreenType

None.

PositionType

PositionType

None.

DestinationType

DestinationType

None.

ProductFilter

string

None.

SelectedProductIds

Collection of integer

None.

Products

Collection of DropDownViewModel

None.

Countries

Collection of DropDownViewModel

None.

SelectedCountryIds

Collection of integer

None.

Vendors

Collection of DropDownViewModel

None.

URL

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "Description": "sample string 3",
  "StartDate": "2025-12-08T12:56:03",
  "EndDate": "2025-12-08T12:56:03",
  "Image": "sample string 6",
  "ImageName": "sample string 7",
  "UploadedImage": {
    "Name": "sample string 1",
    "Data": "sample string 2",
    "Extension": "sample string 3",
    "Height": 4,
    "Width": 5
  },
  "VendorId": 1,
  "PromotionType": 0,
  "ScreenType": 0,
  "PositionType": 0,
  "DestinationType": 0,
  "ProductFilter": "sample string 8",
  "SelectedProductIds": [
    1,
    2
  ],
  "Products": [
    {
      "Id": 1,
      "Text": "sample string 2"
    },
    {
      "Id": 1,
      "Text": "sample string 2"
    }
  ],
  "Countries": [
    {
      "Id": 1,
      "Text": "sample string 2"
    },
    {
      "Id": 1,
      "Text": "sample string 2"
    }
  ],
  "SelectedCountryIds": [
    1,
    2
  ],
  "Vendors": [
    {
      "Id": 1,
      "Text": "sample string 2"
    },
    {
      "Id": 1,
      "Text": "sample string 2"
    }
  ],
  "URL": "sample string 9"
}

application/xml, text/xml

Sample:
<PromotionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Go4Gold.WebAPI.Areas.Promotions.Models">
  <Countries xmlns:d2p1="http://schemas.datacontract.org/2004/07/Go4Gold.WebAPI.Models">
    <d2p1:DropDownViewModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Text>sample string 2</d2p1:Text>
    </d2p1:DropDownViewModel>
    <d2p1:DropDownViewModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Text>sample string 2</d2p1:Text>
    </d2p1:DropDownViewModel>
  </Countries>
  <Description>sample string 3</Description>
  <DestinationType>None</DestinationType>
  <EndDate>2025-12-08T12:56:03.897174-06:00</EndDate>
  <Id>1</Id>
  <Image>sample string 6</Image>
  <ImageName>sample string 7</ImageName>
  <Name>sample string 2</Name>
  <PositionType>BottomFixed</PositionType>
  <ProductFilter>sample string 8</ProductFilter>
  <Products xmlns:d2p1="http://schemas.datacontract.org/2004/07/Go4Gold.WebAPI.Models">
    <d2p1:DropDownViewModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Text>sample string 2</d2p1:Text>
    </d2p1:DropDownViewModel>
    <d2p1:DropDownViewModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Text>sample string 2</d2p1:Text>
    </d2p1:DropDownViewModel>
  </Products>
  <PromotionType>Item</PromotionType>
  <ScreenType>CurrentStatus</ScreenType>
  <SelectedCountryIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </SelectedCountryIds>
  <SelectedProductIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </SelectedProductIds>
  <StartDate>2025-12-08T12:56:03.897174-06:00</StartDate>
  <URL>sample string 9</URL>
  <UploadedImage xmlns:d2p1="http://schemas.datacontract.org/2004/07/Go4Gold.WebAPI.Models">
    <d2p1:Data>sample string 2</d2p1:Data>
    <d2p1:Extension>sample string 3</d2p1:Extension>
    <d2p1:Height>4</d2p1:Height>
    <d2p1:Name>sample string 1</d2p1:Name>
    <d2p1:Width>5</d2p1:Width>
  </UploadedImage>
  <VendorId>1</VendorId>
  <Vendors xmlns:d2p1="http://schemas.datacontract.org/2004/07/Go4Gold.WebAPI.Models">
    <d2p1:DropDownViewModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Text>sample string 2</d2p1:Text>
    </d2p1:DropDownViewModel>
    <d2p1:DropDownViewModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Text>sample string 2</d2p1:Text>
    </d2p1:DropDownViewModel>
  </Vendors>
</PromotionViewModel>

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.