POST api/medias/PostMedia
Request Information
URI Parameters
None.
Body Parameters
MediaDTO| Name | Description | Type | Additional 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": "4e61e4db-3d0f-4dbd-84da-f99f19afa55b",
"SourceSystem": "sample string 2",
"EntityQOCID": "1509c6f7-f643-469d-95fb-671f2feb869f",
"EntitySourceID": "sample string 4",
"QOCGUID": "9369fff7-4731-4ff8-b6d7-5986c6237ba6",
"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>4e61e4db-3d0f-4dbd-84da-f99f19afa55b</BrokerageQOCID> <Description>sample string 9</Description> <EntityQOCID>1509c6f7-f643-469d-95fb-671f2feb869f</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>9369fff7-4731-4ff8-b6d7-5986c6237ba6</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| Name | Description | Type | Additional 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": "8a879863-0de7-4875-9b51-bed7cdc5cb26",
"EntityQOCID": "dd8b3842-223e-4249-91f1-52464fad5f78",
"EntitySourceID": "sample string 3",
"QOCGUID": "9a5bebf3-0577-4f7f-a582-3c1ab5fff8b7",
"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>8a879863-0de7-4875-9b51-bed7cdc5cb26</d2p1:BrokerageQOCID>
<d2p1:EntityQOCID>dd8b3842-223e-4249-91f1-52464fad5f78</d2p1:EntityQOCID>
<d2p1:EntitySourceID>sample string 3</d2p1:EntitySourceID>
<d2p1:QOCGUID>9a5bebf3-0577-4f7f-a582-3c1ab5fff8b7</d2p1:QOCGUID>
<d2p1:SourceID>sample string 5</d2p1:SourceID>
</SourceEntity>
</PostResultOfSimpleMediaDTOm_PmVAP2a>