POST api/Deals

Request Information

URI Parameters

None.

Body Parameters

DealWrapper
NameDescriptionTypeAdditional information
ImagePathInByte

Collection of byte

None.

DealId

integer

None.

PostDetail

string

None.

ImagePath

string

None.

ValidFrom

date

None.

ValidTo

date

None.

SoapId

integer

None.

StatusId

integer

None.

CreatedDate

date

None.

CreatedBy

integer

None.

UpdatedDate

date

None.

UpdatedBy

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ImagePathInByte": "QEA=",
  "DealId": 1,
  "PostDetail": "sample string 2",
  "ImagePath": "sample string 3",
  "ValidFrom": "2025-12-11T15:29:11.84358+05:30",
  "ValidTo": "2025-12-11T15:29:11.84358+05:30",
  "SoapId": 1,
  "StatusId": 1,
  "CreatedDate": "2025-12-11T15:29:11.84358+05:30",
  "CreatedBy": 1,
  "UpdatedDate": "2025-12-11T15:29:11.84358+05:30",
  "UpdatedBy": 1
}

application/xml, text/xml

Sample:
<DealWrapper xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BaliYatraApi.Models">
  <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BaliYatraApi.DataAccess">1</CreatedBy>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BaliYatraApi.DataAccess">2025-12-11T15:29:11.84358+05:30</CreatedDate>
  <DealId xmlns="http://schemas.datacontract.org/2004/07/BaliYatraApi.DataAccess">1</DealId>
  <ImagePath xmlns="http://schemas.datacontract.org/2004/07/BaliYatraApi.DataAccess">sample string 3</ImagePath>
  <PostDetail xmlns="http://schemas.datacontract.org/2004/07/BaliYatraApi.DataAccess">sample string 2</PostDetail>
  <SoapId xmlns="http://schemas.datacontract.org/2004/07/BaliYatraApi.DataAccess">1</SoapId>
  <StatusId xmlns="http://schemas.datacontract.org/2004/07/BaliYatraApi.DataAccess">1</StatusId>
  <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/BaliYatraApi.DataAccess">1</UpdatedBy>
  <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/BaliYatraApi.DataAccess">2025-12-11T15:29:11.84358+05:30</UpdatedDate>
  <ValidFrom xmlns="http://schemas.datacontract.org/2004/07/BaliYatraApi.DataAccess">2025-12-11T15:29:11.84358+05:30</ValidFrom>
  <ValidTo xmlns="http://schemas.datacontract.org/2004/07/BaliYatraApi.DataAccess">2025-12-11T15:29:11.84358+05:30</ValidTo>
  <ImagePathInByte>QEA=</ImagePathInByte>
</DealWrapper>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Deal
NameDescriptionTypeAdditional information
DealId

integer

None.

PostDetail

string

None.

ImagePath

string

None.

ValidFrom

date

None.

ValidTo

date

None.

SoapId

integer

None.

StatusId

integer

None.

CreatedDate

date

None.

CreatedBy

integer

None.

UpdatedDate

date

None.

UpdatedBy

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "DealId": 1,
  "PostDetail": "sample string 2",
  "ImagePath": "sample string 3",
  "ValidFrom": "2025-12-11T15:29:11.84358+05:30",
  "ValidTo": "2025-12-11T15:29:11.84358+05:30",
  "SoapId": 1,
  "StatusId": 1,
  "CreatedDate": "2025-12-11T15:29:11.84358+05:30",
  "CreatedBy": 1,
  "UpdatedDate": "2025-12-11T15:29:11.84358+05:30",
  "UpdatedBy": 1
}

application/xml, text/xml

Sample:
<Deal xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BaliYatraApi.DataAccess">
  <CreatedBy>1</CreatedBy>
  <CreatedDate>2025-12-11T15:29:11.84358+05:30</CreatedDate>
  <DealId>1</DealId>
  <ImagePath>sample string 3</ImagePath>
  <PostDetail>sample string 2</PostDetail>
  <SoapId>1</SoapId>
  <StatusId>1</StatusId>
  <UpdatedBy>1</UpdatedBy>
  <UpdatedDate>2025-12-11T15:29:11.84358+05:30</UpdatedDate>
  <ValidFrom>2025-12-11T15:29:11.84358+05:30</ValidFrom>
  <ValidTo>2025-12-11T15:29:11.84358+05:30</ValidTo>
</Deal>