API Edit Marker
This API call will update an existing marker in the specified recording. This call can be used on a recording in progress.
Contents
Resource URL
http://valt.example.com/api/v3//records/{recordid}/markers/{markerid}/edit
Replace {recordid} with the actual id number of the record. Records are numbered sequentially when added to VALT. Replace {markerid} with the actual id number of the marker. Markers are numbered sequentially when added to VALT.
Resource Information
Method | POST |
Headers | Content-Type:application/json |
Response Type | JSON |
Authentication Required | Yes |
Parameters
The JSON body must be properly formatted. All fields and values should be enclosed in double quotes and separated by a colon.
Field Name | Description | Required | Example | |
---|---|---|---|---|
event | Marker Name | no | Confession | |
template | Array of JSON objects containing the field ids and values for the marker template. | no | {"14":"Confession witnessed by officers Jones and Smith"} | |
{fieldid} | Primary group ID for the new user. | no | Confession witnessed by officers Jones and Smith |
Response
Code | Reason |
---|---|
200 | Marker Updated Successfully |
400 | Invalid Request (See Response for Specific Error) |
401 | Unauthorized |
500 | JSON Body Formatted Incorrectly |
data | |
---|---|
id | ID number for the updated marker. |
Examples
Request
The sample JSON body below is formatted with line breaks and indentation to make it easier to read. This is not required.
https://ivstest1.ad.ipivs.com/api/v3/records/616/markers?access_token=e82632d19c523678fea3d1016c6df9e9
{ "event":"API Marker 3", "time":30, "template": { "9":"12345678", "10":"Test Note" } }
Successful Response
Sample response is shown with line breaks to make it more readable. Actual responses will not include line breaks.
{ "data":{ "id": 41 } }
Failure Response
Sample response is shown with line breaks to make it more readable. Actual responses will not include line breaks.
{ "error":{ "code": 500, "message": "Internal Server Error" } }