POST api/destination/insertdestination

Request Information

URI Parameters

None.

Body Parameters

DestinationMaster
NameDescriptionTypeAdditional information
DestinationMasterId

integer

None.

DestinationName

string

None.

Description

string

None.

IsChildOf

integer

None.

ChildOfName

string

None.

DestinationMasterImages

Collection of DestinationMasterImage

None.

CreatedDate

date

None.

ModifiedDate

date

None.

CreatedBy

integer

None.

ModifiedBy

integer

None.

IsActive

boolean

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "DestinationMasterId": 1,
  "DestinationName": "sample string 2",
  "Description": "sample string 3",
  "IsChildOf": 1,
  "ChildOfName": "sample string 4",
  "DestinationMasterImages": [
    {
      "DestinationMasterImageId": 1,
      "DestinationMasterId": 2,
      "ImagePath": "sample string 3",
      "ImageTag": "sample string 4",
      "ImageData": "QEA=",
      "FileType": "sample string 5",
      "FileExtension": "sample string 6",
      "CreatedDate": "2025-06-24T13:09:35.3283124+00:00",
      "ModifiedDate": "2025-06-24T13:09:35.3283124+00:00",
      "CreatedBy": 1,
      "ModifiedBy": 1,
      "IsActive": true,
      "IsDeleted": true
    },
    {
      "DestinationMasterImageId": 1,
      "DestinationMasterId": 2,
      "ImagePath": "sample string 3",
      "ImageTag": "sample string 4",
      "ImageData": "QEA=",
      "FileType": "sample string 5",
      "FileExtension": "sample string 6",
      "CreatedDate": "2025-06-24T13:09:35.3283124+00:00",
      "ModifiedDate": "2025-06-24T13:09:35.3283124+00:00",
      "CreatedBy": 1,
      "ModifiedBy": 1,
      "IsActive": true,
      "IsDeleted": true
    }
  ],
  "CreatedDate": "2025-06-24T13:09:35.3283124+00:00",
  "ModifiedDate": "2025-06-24T13:09:35.3283124+00:00",
  "CreatedBy": 1,
  "ModifiedBy": 1,
  "IsActive": true,
  "IsDeleted": true
}

text/html

Sample:
{"DestinationMasterId":1,"DestinationName":"sample string 2","Description":"sample string 3","IsChildOf":1,"ChildOfName":"sample string 4","DestinationMasterImages":[{"DestinationMasterImageId":1,"DestinationMasterId":2,"ImagePath":"sample string 3","ImageTag":"sample string 4","ImageData":"QEA=","FileType":"sample string 5","FileExtension":"sample string 6","CreatedDate":"2025-06-24T13:09:35.3283124+00:00","ModifiedDate":"2025-06-24T13:09:35.3283124+00:00","CreatedBy":1,"ModifiedBy":1,"IsActive":true,"IsDeleted":true},{"DestinationMasterImageId":1,"DestinationMasterId":2,"ImagePath":"sample string 3","ImageTag":"sample string 4","ImageData":"QEA=","FileType":"sample string 5","FileExtension":"sample string 6","CreatedDate":"2025-06-24T13:09:35.3283124+00:00","ModifiedDate":"2025-06-24T13:09:35.3283124+00:00","CreatedBy":1,"ModifiedBy":1,"IsActive":true,"IsDeleted":true}],"CreatedDate":"2025-06-24T13:09:35.3283124+00:00","ModifiedDate":"2025-06-24T13:09:35.3283124+00:00","CreatedBy":1,"ModifiedBy":1,"IsActive":true,"IsDeleted":true}

application/xml, text/xml

Sample:
<DestinationMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SRG.Core">
  <CreatedBy>1</CreatedBy>
  <CreatedDate>2025-06-24T13:09:35.3283124+00:00</CreatedDate>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <ModifiedBy>1</ModifiedBy>
  <ModifiedDate>2025-06-24T13:09:35.3283124+00:00</ModifiedDate>
  <ChildOfName>sample string 4</ChildOfName>
  <Description>sample string 3</Description>
  <DestinationMasterId>1</DestinationMasterId>
  <DestinationMasterImages>
    <DestinationMasterImage>
      <CreatedBy>1</CreatedBy>
      <CreatedDate>2025-06-24T13:09:35.3283124+00:00</CreatedDate>
      <IsActive>true</IsActive>
      <IsDeleted>true</IsDeleted>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedDate>2025-06-24T13:09:35.3283124+00:00</ModifiedDate>
      <DestinationMasterId>2</DestinationMasterId>
      <DestinationMasterImageId>1</DestinationMasterImageId>
      <FileExtension>sample string 6</FileExtension>
      <FileType>sample string 5</FileType>
      <ImageData>QEA=</ImageData>
      <ImagePath>sample string 3</ImagePath>
      <ImageTag>sample string 4</ImageTag>
    </DestinationMasterImage>
    <DestinationMasterImage>
      <CreatedBy>1</CreatedBy>
      <CreatedDate>2025-06-24T13:09:35.3283124+00:00</CreatedDate>
      <IsActive>true</IsActive>
      <IsDeleted>true</IsDeleted>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedDate>2025-06-24T13:09:35.3283124+00:00</ModifiedDate>
      <DestinationMasterId>2</DestinationMasterId>
      <DestinationMasterImageId>1</DestinationMasterImageId>
      <FileExtension>sample string 6</FileExtension>
      <FileType>sample string 5</FileType>
      <ImageData>QEA=</ImageData>
      <ImagePath>sample string 3</ImagePath>
      <ImageTag>sample string 4</ImageTag>
    </DestinationMasterImage>
  </DestinationMasterImages>
  <DestinationName>sample string 2</DestinationName>
  <IsChildOf>1</IsChildOf>
</DestinationMaster>

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 'DestinationMaster'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.