PUT api/v1/locations/{locationId}/devices/{deviceId}/events/acknowledge
This API is used to acknowledge the awareness events
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| locationId |
TC2 Location |
integer |
Required |
| deviceId |
TC2 Security DeviceId |
integer |
Required |
Body Parameters
Acknowledge awareness events details
AcknowledgeAwarenessEvents| Name | Description | Type | Additional information |
|---|---|---|---|
| LastAcknowledgedEventId | integer |
None. |
|
| UserCode | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"LastAcknowledgedEventId": 1,
"UserCode": 2
}
application/xml, text/xml
Sample:
<AcknowledgeAwarenessEvents xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2Domain.Awareness"> <LastAcknowledgedEventId>1</LastAcknowledgedEventId> <UserCode>2</UserCode> </AcknowledgeAwarenessEvents>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseResults
BaseResults| Name | Description | Type | Additional information |
|---|---|---|---|
| ResultCode | integer |
None. |
|
| ResultData | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ResultCode": 1,
"ResultData": "sample string 2"
}
application/xml, text/xml
Sample:
<BaseResults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2Utilities.RestApi"> <ResultCode>1</ResultCode> <ResultData>sample string 2</ResultData> </BaseResults>