POST sites/{siteId}/channels/{channelId}/photo?dataTime={dataTime}
Create a single new photo data point in the specified site and photo channel. The request "Content-Type" should be set to "multipart/form-data" with the file data in the body of the request.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
siteId |
Site id of the site where the specified photo channel exists. |
integer |
Required |
channelId |
Channel id of the photo channel where this photo data point will be created. |
integer |
Required |
dataTime |
The date and time the photo data point will be created with. Format is 'yyyy-MM-ddTHH:mm:ss'. |
string |
None. |
Body Parameters
None.
Response Information
Resource Description
ResponseVMName | Description | Type | Additional information |
---|---|---|---|
ResultCode | FwApiResultCode |
None. |
|
ResultMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "ResultCode": 0, "ResultMessage": "sample string 1" }
application/xml, text/xml
Sample:
<ResponseVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FW.WebApi2.ViewModels"> <ResultCode>Ok</ResultCode> <ResultMessage>sample string 1</ResultMessage> </ResponseVM>