-
Home -
GoPlant API v3.0

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", "ResponseID": 100, "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, "StartDatetimeUTC": "0001-01-01T00:00:00", "EndDatetimeUTC": "9999-12-31T23:59:59.9999999", "ResponseID": 270378, "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/ResponsesAfterResponseID \ -H 'Authorization: Basic TXlUYWdTb3VyY2UxOjhFRTMxNTFCMUQwODQzOUZCMEQyQjhFQ0MzMzNBNkZF' \ -H 'Cache-Control: no-cache' \ -H 'Content-Type: application/json' \ -d '{ "RowStart": 0, "RowCount": 2, "ReturnType": "json", "ResponseID": 150000 }'
var client = new RestClient("http://localhost:9080/api/svc/Historian/ResponsesAfterResponseID"); 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\"ResponseID\": 150000\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request);
var settings = { "async": true, "crossDomain": true, "url": "http://localhost:9080/api/svc/Historian/ResponsesAfterResponseID", "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\"ResponseID\": 270378,\n\t\"EndpointVersion\": null\n}" } $.ajax(settings).done(function (response) { console.log(response); });