updateMarker
This method is to update a marker that was previously created by injectMarker.
This method set the end date time of a marker, turning an "instance" marker into an "interval" marker. You can also update the extras object.
The marker must belong to a record that is still in progress. You cannot update the marker if the record is already stopped.
Parameters
Name | Type | Required | Description |
cortexToken |
| yes | A token returned by authorize. |
session |
| yes | A session id returned by createSession. |
markerId |
| yes | The id of the marker you want to update. This marker must belong to the current record of the session. |
time |
| yes | The end timestamp of the marker. It is the number of milliseconds that have elapsed since 00:00:00 Thursday, 1 January 1970 UTC. |
extras |
| no | Any extra information you want to associate with the marker. |
Result
The result is an object containing these fields:
Name | Type | Description |
recordId |
| The id of the record this marker belongs to. |
sessionId |
| The id of the session associated to the record. |
marker |
| A marker object that represents the marker that was updated. |
Examples
Last updated