POST v1/store/login/user/assets?propertyID={propertyID}&replaceIfExists={replaceIfExists}
Uploads graphic asset.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| propertyID |
Graphic dial ID |
globally unique identifier |
Required |
| replaceIfExists |
When value 'true' and dial has asset with the same name the asset should be replaced by uploaded file |
boolean |
Optional. Default value is False |
Body Parameters
None.
Response Information
Resource Description
Returns uploaded graphic assets detailed info.
AddAssetResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| AssetID |
Graphic asset ID. |
string |
None. |
| DisplayName |
Graphic asset name. |
string |
None. |
| IsUploaded |
Flag that use to distinguish user uploaded asset from PE asset. |
boolean |
None. |
| FileName |
Graphic asset name with extension. |
string |
None. |
| Url |
Graphic asset URL to the original content. |
string |
None. |
| ThumbnailUrl |
Graphic asset thumbnail URL. |
string |
None. |
| Width |
Graphic asset width in pixels. |
integer |
None. |
| Height |
Graphic asset height in pixels. |
integer |
None. |
| SizeKB |
Graphic asset size in kilobyte. |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"AssetID": "sample string 1",
"DisplayName": "sample string 2",
"IsUploaded": true,
"FileName": "sample string 4",
"Url": "sample string 5",
"ThumbnailUrl": "sample string 6",
"Width": 1,
"Height": 1,
"SizeKB": 7
}