Download OpenAPI specification:
API documentation for: Analytics - https://analytics.newtec.com
Generate grading batch report for the provided report ID
| reportId required | integer Report ID used in URL path |
| ids | Array of integers Examples:
Batch IDs to get report for |
| batchTags | Array of strings Examples:
Batch tags to get report for |
| export | string Examples:
Format in which report should be exported |
| fs | string Examples:
Field seperator for CSV exports |
| orientation | string Examples:
PDF orientation (landscape / portrait) |
| destination | string Examples:
Export destination |
| emailTo | Array of integers Examples:
User IDs to send report to |
| sftpTo | Array of integers Examples:
SFTP IDs to send report to |
{- "data": {
- "reportSectionA": {
- "sortPosition": 1,
- "sectionName": "Section A",
- "data": { }
}, - "reportSectionB": {
- "sortPosition": 3,
- "sectionName": "Section B",
- "data": { }
}, - "etc": {
- "sortPosition": 2,
- "sectionName": "Section etc.",
- "data": { }
}
}
}Generate grading job report for the provided report ID
| reportId required | integer Report ID used in URL path |
| ids | Array of integers Examples:
Job IDs to get report for |
| jobNames | Array of strings Examples:
Job names to get report for |
| export | string Examples:
Format in which report should be exported |
| fs | string Examples:
Field seperator for CSV exports |
| orientation | string Examples:
PDF orientation (landscape / portrait) |
| destination | string Examples:
Export destination |
| emailTo | Array of integers Examples:
User IDs to send report to |
| sftpTo | Array of integers Examples:
SFTP IDs to send report to |
{- "data": {
- "reportSectionA": {
- "sortPosition": 1,
- "sectionName": "Section A",
- "data": { }
}, - "reportSectionB": {
- "sortPosition": 3,
- "sectionName": "Section B",
- "data": { }
}, - "etc": {
- "sortPosition": 2,
- "sectionName": "Section etc.",
- "data": { }
}
}
}| userPrivileges | boolean Examples:
If report groups are required for user privileges |
{- "data": [
- {
- "id": 1,
- "path": "/grading",
- "name": "Grading",
- "parentId": null
}, - {
- "id": 2,
- "path": "/grading/batches",
- "name": "Grading Batches",
- "parentId": 1
}
]
}| userPrivileges | boolean Examples:
If report groups are required for user privileges |
{- "data": [
- {
- "id": 1,
- "path": "/grading",
- "name": "Grading",
- "parentId": null
}, - {
- "id": 2,
- "path": "/grading/batches",
- "name": "Grading Batches",
- "parentId": 1
}
]
}| userPrivileges | boolean Examples:
If report groups are required for user privileges |
{- "data": [
- {
- "id": 1,
- "path": "/grading",
- "name": "Grading",
- "parentId": null
}, - {
- "id": 2,
- "path": "/grading/batches",
- "name": "Grading Batches",
- "parentId": 1
}
]
}| userPrivileges | boolean Examples:
If report groups are required for user privileges |
{- "data": [
- {
- "id": 1,
- "path": "/grading",
- "name": "Grading",
- "parentId": null
}, - {
- "id": 2,
- "path": "/grading/batches",
- "name": "Grading Batches",
- "parentId": 1
}
]
}| batchTags | Array of strings Array of batch tags |
Array of objects
|
{- "batchTags": [
- "Batch1",
- "Batch2"
]
}{- "message": "Batches created successfully but there was an error adding traceability data. Contact support at analytics.support@newtec.dk"
}| variableId required | integer Traceability variable ID for which traceability values will be added |
| valueArray | Array of strings Array of values |
object Parent value and child values map |
{- "valueArray": [
- "Grower1",
- "Grower2"
]
}{- "message": "Some values were not saved as your are not authorized to access some of the specified parent values"
}| name required | string |
| typeId required | integer
|
| parentId | integer |
{- "name": "Crop",
- "typeId": 1,
- "parentId": 1
}{- "message": "Session expired. Please re-login"
}| variableType | string Examples:
If only 'list' type variables & corresponding values are required |
| variables | Array of strings Examples:
Get only these specific variables |
{- "data": {
- "1": {
- "name": "Grower",
- "type": "list",
- "parentId": null,
- "values": [
- {
- "id": 1,
- "value": "Grower 1",
- "parentId": null
}, - {
- "id": 2,
- "value": "Grower 2",
- "parentId": null
}
]
}, - "2": {
- "name": "Field",
- "type": "list",
- "parentId": 1,
- "values": [
- {
- "id": 3,
- "value": "Field 1",
- "parentId": 1
}, - {
- "id": 4,
- "value": "Field 2",
- "parentId": 2
}
]
}
}
}