Video sequences can be tagged with evidence locks. Evidence locks protect the tagged video sequence from being deleted for a defined duration.
Download the OpenAPI specification for the Evidence Locks API from https://doc.developer.milestonesys.com/mipvmsapi/api/evidencelocks-rest/v1/openapi.yaml.
Get the evidenceLock identified by {id}.
id required | string <uuid> |
{- "data": {
- "description": "AutoEvidenceLock-16:24:31 set for a duration of 10 minutes",
- "id": "cc4bb285-e62e-4da4-b411-e25f6cc4e99a",
- "created": "2024-09-23T17:24:31Z",
- "lastModified": "2024-09-23T17:27:43.41Z",
- "startTime": "2024-09-23T16:24:31.384036Z",
- "tagTime": "2024-09-23T16:29:31.384036Z",
- "endTime": "2024-09-23T16:34:31.384036Z",
- "header": "AutoEvidenceLock-16:24:31",
- "reference": "MyEvidenceLock-16:24:31",
- "user": "MILESTONE\\abc",
- "retentionExpire": "9999-12-31T22:59:59.9999999Z",
- "retentionSize": 4566237677,
- "retentionOption": {
- "retentionUnits": -1,
- "retentionType": "Indefinite"
}, - "devicePaths": [
- {
- "type": "cameras",
- "id": "124c3e51-b7c6-46f1-9a39-198e6a4ba845"
}
], - "relations": {
- "self": {
- "type": "evidenceLocks",
- "id": "cc4bb285-e62e-4da4-b411-e25f6cc4e99a"
}
}
}
}
Update specific fields in the evidenceLock identified by {id}.
id required | string <uuid> |
description | string |
startTime | string <date-time> |
tagTime | string <date-time> |
endTime | string <date-time> |
header | string |
reference | string |
retentionExpire | string <date-time> |
object | |
Array of objects (devicePath) |
{- "description": "string",
- "startTime": "2019-08-24T14:15:22Z",
- "tagTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "header": "string",
- "reference": "string",
- "retentionExpire": "2019-08-24T14:15:22Z",
- "retentionOption": {
- "retentionUnits": 0,
- "retentionType": "string"
}, - "devicePaths": [
- {
- "type": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}
{- "httpCode": "400",
- "details": [
- {
- "errorText": "Incorrect formatted JSON",
- "property": "string",
- "errorTextId": "string"
}
]
}
Delete the evidenceLock identified by {id}.
id required | string <uuid> |
{- "httpCode": "400",
- "details": [
- {
- "errorText": "Incorrect formatted JSON",
- "property": "string",
- "errorTextId": "string"
}
]
}
Perform one of 3 tasks:
task
parameter: a new evidenceLock entry is created from the bodynewReference
: create a new reference and trigger rules searchTime
: search based on time and text parameterstask | string Name of the task to perform: |
Array of objects (devicePath) | |
searchText | string |
searchUser | boolean Defines if search should match on user names |
searchHeader | boolean Defines if search should match on header text |
searchDescription | boolean Defines if search should match on description text |
searchReference | boolean Defines if search should match on the reference id |
users | Array of strings |
headerContains | string Text to search for in headers |
descriptionContains | string Text to search for in descriptions |
createdFromTime | string <date-time> |
createdToTime | string <date-time> |
fromTime | string <date-time> |
toTime | string <date-time> |
tagFromTime | string <date-time> |
tagToTime | string <date-time> |
expireFromTime | string <date-time> |
expireToTime | string <date-time> |
sortOrder | string The order to retrieve the evidence locks. The content should be a field name in camel-case, one of: |
sortAscending | boolean |
page | integer The page of evidence locks to retrieve, the page-size is defined in size |
size | integer The number of evidence locks to retrieve in each search request, e.g. the page size |
time | string <UTC time> |
resourceTypes | Array of strings Can be one or all of |
timeLimit | string Defines a timespan to search within, compared to the |
countLimit | integer The max evidenceLocks to return |
{- "devicePaths": [
- {
- "type": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "searchText": "string",
- "searchUser": true,
- "searchHeader": true,
- "searchDescription": true,
- "searchReference": true,
- "users": [
- "string"
], - "headerContains": "string",
- "descriptionContains": "string",
- "createdFromTime": "2019-08-24T14:15:22Z",
- "createdToTime": "2019-08-24T14:15:22Z",
- "fromTime": "2019-08-24T14:15:22Z",
- "toTime": "2019-08-24T14:15:22Z",
- "tagFromTime": "2019-08-24T14:15:22Z",
- "tagToTime": "2019-08-24T14:15:22Z",
- "expireFromTime": "2019-08-24T14:15:22Z",
- "expireToTime": "2019-08-24T14:15:22Z",
- "sortOrder": "string",
- "sortAscending": true,
- "page": 0,
- "size": 0,
- "time": "string",
- "resourceTypes": [
- "string"
], - "timeLimit": "string",
- "countLimit": 0
}
{- "array": [
- {
- "description": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created": "2019-08-24T14:15:22Z",
- "lastModified": "2019-08-24T14:15:22Z",
- "startTime": "2019-08-24T14:15:22Z",
- "tagTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "header": "string",
- "reference": "string",
- "user": "string",
- "retentionExpire": "2019-08-24T14:15:22Z",
- "retentionSize": 0,
- "retentionOption": {
- "retentionUnits": 0,
- "retentionType": "string"
}, - "devicePaths": [
- {
- "type": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "relations": {
- "self": {
- "type": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}
}
]
}