POST portal/{name}/updatemediasitecode/{secretKey}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| name | string |
Required |
|
| secretKey | string |
Required |
Body Parameters
UpdatePortalMediaSiteCodeParameters| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerId | integer |
None. |
|
| Id | integer |
None. |
|
| MediaCode | string |
None. |
|
| ObjectId | integer |
None. |
|
| WebLink | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"CustomerId": 1,
"Id": 2,
"MediaCode": "sample string 3",
"ObjectId": 4,
"WebLink": "sample string 5"
}
application/xml, text/xml
Sample:
<UpdatePortalMediaSiteCodeParameters xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OmnicasaApiv3.Parameters"> <CustomerId>1</CustomerId> <Id>2</Id> <MediaCode>sample string 3</MediaCode> <ObjectId>4</ObjectId> <WebLink>sample string 5</WebLink> </UpdatePortalMediaSiteCodeParameters>
Response Information
Resource Description
ReturnResultOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Success |
Value = true is successful (If this value = false, then we should see Code and Message to have more info about error.) |
boolean |
None. |
| Code |
It's error code (If value = 0, it's successful) |
integer |
None. |
| Message |
It's error message (If value = empty, it's successful). |
string |
None. |
| Value |
Data which you need to get. |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Code": 2,
"Message": "sample string 3",
"Value": true
}
application/xml, text/xml
Sample:
<ReturnResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OmnicasaApiv3.Models"> <Code>2</Code> <Message>sample string 3</Message> <Success>true</Success> <Value>true</Value> </ReturnResultOfboolean>