POST api/medias/PostMedia

Request Information

URI Parameters

None.

Body Parameters

MediaDTO
NameDescriptionTypeAdditional information
BrokerageQOCID

globally unique identifier

None.

SourceSystem

string

None.

EntityQOCID

globally unique identifier

None.

EntitySourceID

string

None.

QOCGUID

globally unique identifier

None.

SourceID

string

None.

MediaCaption

string

None.

PhotoOrientation

string

None.

Description

string

None.

MediaImagePath

string

None.

MediaSequenceNumber

integer

None.

EntityType

MediaEntityTypes

None.

MediaType

MediaTypes

None.

MediaCategoryType

MediaCategoryTypes

None.

MediaFormatType

MediaFormatTypes

None.

Request Formats

application/json, text/json

Sample:
{
  "BrokerageQOCID": "da553d29-c0d2-4e14-8bdb-e79a12f90e6c",
  "SourceSystem": "sample string 2",
  "EntityQOCID": "97f65a86-f695-4a54-8f73-3a57b9e0c665",
  "EntitySourceID": "sample string 4",
  "QOCGUID": "0ed48aac-0054-42d0-b3b7-ebc834364a12",
  "SourceID": "sample string 6",
  "MediaCaption": "sample string 7",
  "PhotoOrientation": "sample string 8",
  "Description": "sample string 9",
  "MediaImagePath": "sample string 10",
  "MediaSequenceNumber": 1,
  "EntityType": "Listing",
  "MediaType": "Image",
  "MediaCategoryType": "Listing_Photo",
  "MediaFormatType": "Image"
}

application/xml, text/xml

Sample:
<MediaDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ListingHub.Application.Common.DTO">
  <BrokerageQOCID>da553d29-c0d2-4e14-8bdb-e79a12f90e6c</BrokerageQOCID>
  <Description>sample string 9</Description>
  <EntityQOCID>97f65a86-f695-4a54-8f73-3a57b9e0c665</EntityQOCID>
  <EntitySourceID>sample string 4</EntitySourceID>
  <EntityType>Listing</EntityType>
  <MediaCaption>sample string 7</MediaCaption>
  <MediaCategoryType>Listing_Photo</MediaCategoryType>
  <MediaFormatType>Image</MediaFormatType>
  <MediaImagePath>sample string 10</MediaImagePath>
  <MediaSequenceNumber>1</MediaSequenceNumber>
  <MediaType>Image</MediaType>
  <PhotoOrientation>sample string 8</PhotoOrientation>
  <QOCGUID>0ed48aac-0054-42d0-b3b7-ebc834364a12</QOCGUID>
  <SourceID>sample string 6</SourceID>
  <SourceSystem>sample string 2</SourceSystem>
</MediaDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PostResultOfSimpleMediaDTO
NameDescriptionTypeAdditional information
PostStatus

PostStatuses

None.

Message

string

None.

SourceEntity

SimpleMediaDTO

None.

Response Formats

application/json, text/json

Sample:
{
  "PostStatus": "Successfully",
  "Message": "sample string 1",
  "SourceEntity": {
    "BrokerageQOCID": "e4129fc4-d20e-410a-ba14-1d49ee532405",
    "EntityQOCID": "cd3ffdc3-954f-4fc8-b9f1-428c71c76258",
    "EntitySourceID": "sample string 3",
    "QOCGUID": "ebfcecdb-1954-460e-859c-9a7f2e7713ed",
    "SourceID": "sample string 5"
  }
}

application/xml, text/xml

Sample:
<PostResultOfSimpleMediaDTOm_PmVAP2a xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ListingHub.Application.Common.APIDTO">
  <Message>sample string 1</Message>
  <PostStatus>Successfully</PostStatus>
  <SourceEntity xmlns:d2p1="http://schemas.datacontract.org/2004/07/ListingHub.Application.Common.DTO">
    <d2p1:BrokerageQOCID>e4129fc4-d20e-410a-ba14-1d49ee532405</d2p1:BrokerageQOCID>
    <d2p1:EntityQOCID>cd3ffdc3-954f-4fc8-b9f1-428c71c76258</d2p1:EntityQOCID>
    <d2p1:EntitySourceID>sample string 3</d2p1:EntitySourceID>
    <d2p1:QOCGUID>ebfcecdb-1954-460e-859c-9a7f2e7713ed</d2p1:QOCGUID>
    <d2p1:SourceID>sample string 5</d2p1:SourceID>
  </SourceEntity>
</PostResultOfSimpleMediaDTOm_PmVAP2a>