POST api/Ads

Request Information

URI Parameters

None.

Body Parameters

AdsInsertUpdateRequestModel
NameDescriptionTypeAdditional information
AdsID

integer

None.

GalleryID

integer

Required

AdsTitle

string

Required

AdsDescription

string

None.

IsUnlimitedTime

integer

None.

StartDateTime

date

None.

EndDateTime

date

None.

ExternalURL

string

None.

IsActive

integer

None.

IsCreatedByCustomer

integer

None.

Request Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "adsID": 1,
  "galleryID": 1,
  "adsTitle": "sample string 2",
  "adsDescription": "sample string 3",
  "isUnlimitedTime": 4,
  "startDateTime": "2026-11-29T14:14:07.6991983+00:00",
  "endDateTime": "2026-11-29T14:14:07.6991983+00:00",
  "externalURL": "sample string 5",
  "isActive": 6,
  "isCreatedByCustomer": 1
}

application/xml, text/xml

Sample:
<AdsInsertUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWardsV2.Core.RequestModel">
  <AdsDescription>sample string 3</AdsDescription>
  <AdsID>1</AdsID>
  <AdsTitle>sample string 2</AdsTitle>
  <EndDateTime>2026-11-29T14:14:07.6991983+00:00</EndDateTime>
  <ExternalURL>sample string 5</ExternalURL>
  <GalleryID>1</GalleryID>
  <IsActive>6</IsActive>
  <IsCreatedByCustomer>1</IsCreatedByCustomer>
  <IsUnlimitedTime>4</IsUnlimitedTime>
  <StartDateTime>2026-11-29T14:14:07.6991983+00:00</StartDateTime>
</AdsInsertUpdateRequestModel>

multipart/form-data

Sample:
<AdsInsertUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWardsV2.Core.RequestModel"><AdsDescription>sample string 3</AdsDescription><AdsID>1</AdsID><AdsTitle>sample string 2</AdsTitle><EndDateTime>2026-11-29T14:14:07.6991983+00:00</EndDateTime><ExternalURL>sample string 5</ExternalURL><GalleryID>1</GalleryID><IsActive>6</IsActive><IsCreatedByCustomer>1</IsCreatedByCustomer><IsUnlimitedTime>4</IsUnlimitedTime><StartDateTime>2026-11-29T14:14:07.6991983+00:00</StartDateTime></AdsInsertUpdateRequestModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AdsInsertUpdateRequestModel'.

Response Information

Resource Description

CommonResponseDataModel
NameDescriptionTypeAdditional information
ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWards.Core.DataModel">
  <Code>4</Code>
  <Message>sample string 2</Message>
  <ReturnID>1</ReturnID>
  <Successful>true</Successful>
  <TotalRecord>5</TotalRecord>
</CommonResponseDataModel>

multipart/form-data

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWards.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>