API 2.0: For any of the endpoints that require a start and end date / time, you can now pass a storage group date / time with "StartDatetimeSG" and "EndDatetimeSG" instead of "StartDatetimeUTC" and "EndDatetimeUTC". Include "StorageGroupID" to tell the system which storage group date / time you are sending.
{
"RowStart": 0,
"RowCount": 100,
"ReturnType": "json",
"LastUpdatedUTC": "2018-07-02T15:50:00",
"LastUpdatedSG": null,
"EndpointVersion": null (null = latest 1.x)
}
{
"status": {
"HTTPStatusCode": 200,
"HTTPStatus": "OK",
"RowStart": 3,
"RowsReturned": 3,
"LastIdReturned": 270384,
"RequestBegin": "2019-05-07T20:12:13.8743864Z",
"StopWatch": {
"IsRunning": true,
"Elapsed": "00:00:00.0056833",
"ElapsedMilliseconds": 6,
"ElapsedTicks": 63232
},
"APIversion": "5.13.0.0",
"EndpointVersionReturned": 1,
"ExternalRequest": {
"RowStart": 3,
"RowCount": 3,
"LastUpdatedUTC": "2019-10-02T20:50:00Z",
"LastUpdatedSG": "2019-10-02T15:50:00",
"TagSourceCodeName": "",
"ReturnType": 1,
"EndpointVersion": null,
"EndpointVersionReturned": 1
}
},
"data": [
{
"responseID": 270382,
"responseLabel": "Step - 5 - List - Checkbox",
"responseValue": " ",
"responseDate": "2018-07-02T15:58:26",
"responseColorcode": " ",
"responseType": "List",
"operatorID": 299,
"operatorFirstName": "Kevin",
"operatorLastName": "Cornelison",
"stepID": 32621,
"stepRequired": false,
"stepPage": 1,
"stepLabel": "Step - 5 - List - Checkbox",
"stepComments": "",
"stepWasVisible": true,
"formName": "form - All Steps",
"formSGName": "KevinSubGroup Değeri",
"formStartDate": "2018-07-02T15:58:04",
"formEndDate": "2018-07-02T15:58:26",
"elementLabel": "form - All Steps",
"assetTag": null,
"assetDescription": null,
"assetStatus": null,
"roundName": "Round All Steps",
"roundDesc": "",
"roundStartDate": "2018-07-02T15:58:02",
"roundEndDate": "2018-07-02T15:58:46",
"roundVariantName": "AllSteps",
"taskName": "",
"taskDescription": "",
"taskEventStatus": "Void",
"taskAssignmentStartline": null,
"taskAssignmentDeadline": null,
"taskAssignmentExpiration": null,
"taskAssignmentCompletedDate": null,
"taskAssignmentDeleted": false,
"taskAssignmentStatus": "",
"timeZone": "America/Chicago",
"completedFormID": 30177,
"completedRoundID": 8445,
"completedRoundElementID": 50521,
"taskEventID": null,
"lastUpdated": "2018-07-02T15:58:26",
"roundStorageGroupID": 425,
"roundStorageGroupName:"TXRG1"
},
{
"responseID": 270383,
"responseLabel": "Step - 6 - List - Dropdown",
"responseValue": " ",
"responseDate": "2018-07-02T15:58:26",
"responseColorcode": " ",
"responseType": "List",
"operatorID": 299,
"operatorFirstName": "Kevin",
"operatorLastName": "Cornelison",
"stepID": 32622,
"stepRequired": false,
"stepPage": 1,
"stepLabel": "Step - 6 - List - Dropdown",
"stepComments": "",
"stepWasVisible": true,
"formName": "form - All Steps",
"formSGName": "KevinSubGroup Değeri",
"formStartDate": "2018-07-02T15:58:04",
"formEndDate": "2018-07-02T15:58:26",
"elementLabel": "form - All Steps",
"assetTag": null,
"assetDescription": null,
"assetStatus": null,
"roundName": "Round All Steps",
"roundDesc": "",
"roundStartDate": "2018-07-02T15:58:02",
"roundEndDate": "2018-07-02T15:58:46",
"roundVariantName": "AllSteps",
"taskName": "",
"taskDescription": "",
"taskEventStatus": "Void",
"taskAssignmentStartline": null,
"taskAssignmentDeadline": null,
"taskAssignmentExpiration": null,
"taskAssignmentCompletedDate": null,
"taskAssignmentDeleted": false,
"taskAssignmentStatus": "",
"timeZone": "America/Chicago",
"completedFormID": 30177,
"completedRoundID": 8445,
"completedRoundElementID": 50521,
"taskEventID": null,
"lastUpdated": "2018-07-02T15:58:26",
"roundStorageGroupID": 425,
"roundStorageGroupName:"TXRG1"
},
{
"responseID": 270384,
"responseLabel": "Step - 7 - Yes / No",
"responseValue": " ",
"responseDate": "2018-07-02T15:58:26",
"responseColorcode": " ",
"responseType": "Yes/No",
"operatorID": 299,
"operatorFirstName": "Kevin",
"operatorLastName": "Cornelison",
"stepID": 32623,
"stepRequired": false,
"stepPage": 1,
"stepLabel": "Step - 7 - Yes / No",
"stepComments": "",
"stepWasVisible": true,
"formName": "form - All Steps",
"formSGName": "KevinSubGroup Değeri",
"formStartDate": "2018-07-02T15:58:04",
"formEndDate": "2018-07-02T15:58:26",
"elementLabel": "form - All Steps",
"assetTag": null,
"assetDescription": null,
"assetStatus": null,
"roundName": "Round All Steps",
"roundDesc": "",
"roundStartDate": "2018-07-02T15:58:02",
"roundEndDate": "2018-07-02T15:58:46",
"roundVariantName": "AllSteps",
"taskName": "",
"taskDescription": "",
"taskEventStatus": "Void",
"taskAssignmentStartline": null,
"taskAssignmentDeadline": null,
"taskAssignmentExpiration": null,
"taskAssignmentCompletedDate": null,
"taskAssignmentDeleted": false,
"taskAssignmentStatus": "",
"timeZone": "America/Chicago",
"completedFormID": 30177,
"completedRoundID": 8445,
"completedRoundElementID": 50521,
"taskEventID": null,
"lastUpdated": "2018-07-02T15:58:26",
"roundStorageGroupID": 425,
"roundStorageGroupName:"TXRG1"
}
]
}
{"message": "Unauthorized API access"}
{"message": "Missing body in post."}
{"message": "RowStart cannot be less than 0."}
{"message": "RowCount cannot be less than 0."}
{"message": "You must pass a source code name."}
{"message": "StartDatetimeUTC cannot be null"}
OR
{"message": "EndDatetimeUTC cannot be null"}
OR
{"message": "LastUpdateUTC cannot be null"}
{"message": "ResponsesBetweenResponseDate Error: Invalid Version Requested [1.1]. at ...
curl -X POST \
http://localhost:9080/api/svc/Historian/ResponsesAfterResponseLastUpdated \
-H 'Authorization: Basic TXlUYWdTb3VyY2UxOjhFRTMxNTFCMUQwODQzOUZCMEQyQjhFQ0MzMzNBNkZF' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-d '{
"RowStart": 0,
"RowCount": 2,
"ReturnType": "json",
"LastUpdatedUTC": "2019-10-02T15:50:00"
}'
var client = new RestClient("http://localhost:9080/api/svc/Historian/ResponsesAfterResponseLastUpdated");
var request = new RestRequest(Method.POST);
request.AddHeader("Cache-Control", "no-cache");
request.AddHeader("Authorization", "Basic TXlUYWdTb3VyY2UxOjhFRTMxNTFCMUQwODQzOUZCMEQyQjhFQ0MzMzNBNkZF");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("undefined", "{\n\t\"RowStart\": 0,\n\t\"RowCount\": 2,\n\t\"ReturnType\": \"json\",\n\t\"LastUpdatedUTC\":\"2018-07-02T15:50:00\", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost:9080/api/svc/Historian/ResponsesAfterResponseLastUpdated",
"method": "POST",
"headers": {
"Content-Type": "application/json",
"Authorization": "Basic R29QbGFudEFQSUFjY2VzczpERVZMLlRFU1RERVZFTE9QTUVOVEtFWQ==",
"cache-control": "no-cache"
},
"processData": false,
"data": "{\n\t\"RowStart\": 3,\n\t\"RowCount\": 3,\n\t\"ReturnType\": \"json\",\n\t\"LastUpdatedUTC\":\"2018-07-02T15:50:00\",\n\t\"EndpointVersion\": null\n}"
}
$.ajax(settings).done(function (response) {
console.log(response);
});