Download OpenAPI specification:Download
Relevant endpoints to trigger actions or get data from Ceres app
List all analyses sorted by creation date (newest first).
[- {
- "category": "string",
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "ISC": 100,
- "IRC": 100,
- "created": "2019-08-24T14:15:22Z",
- "ticket": 0,
- "id": 0,
- "commodity": "string",
- "extra_data": null,
- "collection": 0
}
]This endpoint receives a request, creates a photo, and saves the analysis without frontend interaction.
| ticket required | integer Associated ticket number. |
| camera_id | integer or null Optional camera identifier used when the request must capture a new photo. |
| commodity required | string The name of the existing commodity variety. |
{- "ticket": 0,
- "camera_id": 0,
- "commodity": "string"
}{- "category": "string",
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "ISC": 100,
- "IRC": 100,
- "created": "2019-08-24T14:15:22Z",
- "ticket": 0,
- "id": 0,
- "commodity": "string",
- "extra_data": null,
- "collection": 0,
- "photo": {
- "created": "2019-08-24T14:15:22Z",
- "image": "string",
- "mimetype": "string"
}, - "segmented_photo": {
- "created": "2019-08-24T14:15:22Z",
- "image": "string",
- "mimetype": "string"
}
}Return a specific analysis along with its associated photos.
| id required | integer A unique integer value identifying this analysis. |
{- "category": "string",
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "ISC": 100,
- "IRC": 100,
- "created": "2019-08-24T14:15:22Z",
- "ticket": 0,
- "id": 0,
- "commodity": "string",
- "extra_data": null,
- "collection": 0,
- "photo": {
- "created": "2019-08-24T14:15:22Z",
- "image": "string",
- "mimetype": "string"
}, - "segmented_photo": {
- "created": "2019-08-24T14:15:22Z",
- "image": "string",
- "mimetype": "string"
}
}Only ticket and/or commodity fields are accepted.
| id required | integer A unique integer value identifying this analysis. |
| ticket | integer Ticket number associated with the analysis. |
| commodity | string Name of the commercial variety |
| extra_data | any Additional metadata associated with the analysis. |
{- "ticket": 0,
- "commodity": "string",
- "extra_data": null
}{- "category": "string",
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "ISC": 100,
- "IRC": 100,
- "created": "2019-08-24T14:15:22Z",
- "ticket": 0,
- "id": 0,
- "commodity": "string",
- "extra_data": null,
- "collection": 0
}Returns aggregation data. Requires filtering by ticket through query params.
| ticket required | integer Associated ticket number. |
{- "category": "string",
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "ISC": 0,
- "IRC": 0,
- "created_at_list": [
- "2019-08-24T14:15:22Z"
], - "tickets": [
- 0
], - "ids": [
- 0
], - "commodities": [
- "string"
], - "extra_data_list": [
- null
]
}List all analysis collections sorted by creation date (newest first) using standard DRF pagination.
| page | integer Page number to retrieve. |
| page_size | integer Number of collections per page. |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "ticket": 0,
- "commodity": "string",
- "extra_data": null,
- "created": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z",
- "analyses_count": 0,
- "category": "string",
- "ISC": "string",
- "IRC": "string",
- "latest_continuous_run": { }
}
]
}Create a new analysis collection for the selected ticket and commodity.
| ticket | integer or null Ticket number associated with the analysis. |
| commodity required | integer Name of the commercial variety. |
| extra_data | any Additional metadata associated with the analysis collection. |
{- "ticket": 0,
- "commodity": 0,
- "extra_data": null
}{- "id": 0,
- "ticket": 0,
- "commodity": "string",
- "extra_data": null,
- "created": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z",
- "analyses_count": 0,
- "category": "string",
- "ISC": 0,
- "IRC": 0,
- "latest_continuous_run": { },
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "analyses": [
- {
- "id": 0,
- "ticket": "string",
- "created": "2019-08-24T14:15:22Z",
- "commodity": "string",
- "camera": {
- "id": 0,
- "name": "string"
}, - "thumbnail": "string",
- "category": {
- "id": 0,
- "name": "string",
- "color": "string",
- "order": 9223372036854776000
}, - "indice_sanitario_ceresia": 0,
- "indice_recogida_ceresia": 0,
- "collection": 0,
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
]
}
]
}Return a collection with its aggregated data and linked analyses.
| id required | integer A unique integer value identifying this analysis collection. |
{- "id": 0,
- "ticket": 0,
- "commodity": "string",
- "extra_data": null,
- "created": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z",
- "analyses_count": 0,
- "category": "string",
- "ISC": 0,
- "IRC": 0,
- "latest_continuous_run": { },
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "analyses": [
- {
- "id": 0,
- "ticket": "string",
- "created": "2019-08-24T14:15:22Z",
- "commodity": "string",
- "camera": {
- "id": 0,
- "name": "string"
}, - "thumbnail": "string",
- "category": {
- "id": 0,
- "name": "string",
- "color": "string",
- "order": 9223372036854776000
}, - "indice_sanitario_ceresia": 0,
- "indice_recogida_ceresia": 0,
- "collection": 0,
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
]
}
]
}Update the ticket, commodity, or extra data of an existing collection.
| id required | integer A unique integer value identifying this analysis collection. |
| ticket | integer or null Ticket number associated with the analysis. |
| commodity | integer Name of the commercial variety. |
| extra_data | any Additional metadata associated with the analysis collection. |
{- "ticket": 0,
- "commodity": 0,
- "extra_data": null
}{- "id": 0,
- "ticket": 0,
- "commodity": "string",
- "extra_data": null,
- "created": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z",
- "analyses_count": 0,
- "category": "string",
- "ISC": 0,
- "IRC": 0,
- "latest_continuous_run": { },
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "analyses": [
- {
- "id": 0,
- "ticket": "string",
- "created": "2019-08-24T14:15:22Z",
- "commodity": "string",
- "camera": {
- "id": 0,
- "name": "string"
}, - "thumbnail": "string",
- "category": {
- "id": 0,
- "name": "string",
- "color": "string",
- "order": 9223372036854776000
}, - "indice_sanitario_ceresia": 0,
- "indice_recogida_ceresia": 0,
- "collection": 0,
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
]
}
]
}List or create analyses inside the collection. GET uses standard DRF pagination.
| id required | integer A unique integer value identifying this analysis collection. |
| page | integer Page number to retrieve. |
| page_size | integer Number of analyses per page. |
{- "id": 0,
- "ticket": "string",
- "created": "2019-08-24T14:15:22Z",
- "commodity": "string",
- "camera": {
- "id": 0,
- "name": "string"
}, - "thumbnail": "string",
- "category": {
- "id": 0,
- "name": "string",
- "color": "string",
- "order": 9223372036854776000
}, - "indice_sanitario_ceresia": 0,
- "indice_recogida_ceresia": 0,
- "collection": 0,
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
]
}List or create analyses inside the collection. GET uses standard DRF pagination.
| id required | integer A unique integer value identifying this analysis collection. |
| page | integer Page number to retrieve. |
| page_size | integer Number of analyses per page. |
| photo | integer The photograph under analysis, returned compressed at 30% quality. |
| camera_id | integer or null Optional camera identifier used when the request must capture a new photo. |
{- "photo": 0,
- "camera_id": 0
}{- "id": 0,
- "ticket": "string",
- "created": "2019-08-24T14:15:22Z",
- "commodity": "string",
- "camera": {
- "id": 0,
- "name": "string"
}, - "thumbnail": "string",
- "category": {
- "id": 0,
- "name": "string",
- "color": "string",
- "order": 9223372036854776000
}, - "indice_sanitario_ceresia": 0,
- "indice_recogida_ceresia": 0,
- "collection": 0,
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
]
}List all analysis collections sorted by creation date (newest first) using standard DRF pagination.
| page | integer Page number to retrieve. |
| page_size | integer Number of collections per page. |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "ticket": 0,
- "commodity": "string",
- "extra_data": null,
- "created": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z",
- "analyses_count": 0,
- "category": "string",
- "ISC": "string",
- "IRC": "string",
- "latest_continuous_run": { }
}
]
}Create a new analysis collection for the selected ticket and commodity.
| ticket | integer or null Ticket number associated with the analysis. |
| commodity required | integer Name of the commercial variety. |
| extra_data | any Additional metadata associated with the analysis collection. |
{- "ticket": 0,
- "commodity": 0,
- "extra_data": null
}{- "id": 0,
- "ticket": 0,
- "commodity": "string",
- "extra_data": null,
- "created": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z",
- "analyses_count": 0,
- "category": "string",
- "ISC": 0,
- "IRC": 0,
- "latest_continuous_run": { },
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "analyses": [
- {
- "id": 0,
- "ticket": "string",
- "created": "2019-08-24T14:15:22Z",
- "commodity": "string",
- "camera": {
- "id": 0,
- "name": "string"
}, - "thumbnail": "string",
- "category": {
- "id": 0,
- "name": "string",
- "color": "string",
- "order": 9223372036854776000
}, - "indice_sanitario_ceresia": 0,
- "indice_recogida_ceresia": 0,
- "collection": 0,
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
]
}
]
}Return a collection with its aggregated data and linked analyses.
| id required | integer A unique integer value identifying this analysis collection. |
{- "id": 0,
- "ticket": 0,
- "commodity": "string",
- "extra_data": null,
- "created": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z",
- "analyses_count": 0,
- "category": "string",
- "ISC": 0,
- "IRC": 0,
- "latest_continuous_run": { },
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "analyses": [
- {
- "id": 0,
- "ticket": "string",
- "created": "2019-08-24T14:15:22Z",
- "commodity": "string",
- "camera": {
- "id": 0,
- "name": "string"
}, - "thumbnail": "string",
- "category": {
- "id": 0,
- "name": "string",
- "color": "string",
- "order": 9223372036854776000
}, - "indice_sanitario_ceresia": 0,
- "indice_recogida_ceresia": 0,
- "collection": 0,
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
]
}
]
}Update the ticket, commodity, or extra data of an existing collection.
| id required | integer A unique integer value identifying this analysis collection. |
| ticket | integer or null Ticket number associated with the analysis. |
| commodity | integer Name of the commercial variety. |
| extra_data | any Additional metadata associated with the analysis collection. |
{- "ticket": 0,
- "commodity": 0,
- "extra_data": null
}{- "id": 0,
- "ticket": 0,
- "commodity": "string",
- "extra_data": null,
- "created": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z",
- "analyses_count": 0,
- "category": "string",
- "ISC": 0,
- "IRC": 0,
- "latest_continuous_run": { },
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "analyses": [
- {
- "id": 0,
- "ticket": "string",
- "created": "2019-08-24T14:15:22Z",
- "commodity": "string",
- "camera": {
- "id": 0,
- "name": "string"
}, - "thumbnail": "string",
- "category": {
- "id": 0,
- "name": "string",
- "color": "string",
- "order": 9223372036854776000
}, - "indice_sanitario_ceresia": 0,
- "indice_recogida_ceresia": 0,
- "collection": 0,
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
]
}
]
}List or create analyses inside the collection. GET uses standard DRF pagination.
| id required | integer A unique integer value identifying this analysis collection. |
| page | integer Page number to retrieve. |
| page_size | integer Number of analyses per page. |
{- "id": 0,
- "ticket": "string",
- "created": "2019-08-24T14:15:22Z",
- "commodity": "string",
- "camera": {
- "id": 0,
- "name": "string"
}, - "thumbnail": "string",
- "category": {
- "id": 0,
- "name": "string",
- "color": "string",
- "order": 9223372036854776000
}, - "indice_sanitario_ceresia": 0,
- "indice_recogida_ceresia": 0,
- "collection": 0,
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
]
}List or create analyses inside the collection. GET uses standard DRF pagination.
| id required | integer A unique integer value identifying this analysis collection. |
| page | integer Page number to retrieve. |
| page_size | integer Number of analyses per page. |
| photo | integer The photograph under analysis, returned compressed at 30% quality. |
| camera_id | integer or null Optional camera identifier used when the request must capture a new photo. |
{- "photo": 0,
- "camera_id": 0
}{- "id": 0,
- "ticket": "string",
- "created": "2019-08-24T14:15:22Z",
- "commodity": "string",
- "camera": {
- "id": 0,
- "name": "string"
}, - "thumbnail": "string",
- "category": {
- "id": 0,
- "name": "string",
- "color": "string",
- "order": 9223372036854776000
}, - "indice_sanitario_ceresia": 0,
- "indice_recogida_ceresia": 0,
- "collection": 0,
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
]
}Return up to 20 lightweight analysis collection options matching the Ticket representation. This operation is private-only.
| query required | string Partial or exact text to match against the Ticket. |
{- "results": [
- {
- "id": 0,
- "ticket": -9223372036854776000,
- "commodity": {
- "id": 0,
- "name": "string"
}, - "created": "2019-08-24T14:15:22Z",
- "analyses_count": 0
}
]
}[- {
- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 9223372036854776000,
- "api_port": 9223372036854776000,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 9223372036854776000,
- "analyses_processed": 9223372036854776000,
- "error_message": "string",
- "created": "2019-08-24T14:15:22Z",
- "started_at": "2019-08-24T14:15:22Z",
- "stopped_at": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z"
}
]Create a continuous analysis run for a camera and enqueue frame capture.
| camera required | integer |
| collection | integer or null |
| ticket | integer or null |
| commodity | integer |
| extra_data | any |
{- "camera": 0,
- "collection": 0,
- "ticket": 0,
- "commodity": 0,
- "extra_data": null
}{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 9223372036854776000,
- "api_port": 9223372036854776000,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 9223372036854776000,
- "analyses_processed": 9223372036854776000,
- "error_message": "string",
- "created": "2019-08-24T14:15:22Z",
- "started_at": "2019-08-24T14:15:22Z",
- "stopped_at": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z"
}| id required | integer A unique integer value identifying this continuous analysis run. |
{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 9223372036854776000,
- "api_port": 9223372036854776000,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 9223372036854776000,
- "analyses_processed": 9223372036854776000,
- "error_message": "string",
- "created": "2019-08-24T14:15:22Z",
- "started_at": "2019-08-24T14:15:22Z",
- "stopped_at": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z"
}Request a running continuous analysis to stop.
| id required | integer A unique integer value identifying this continuous analysis run. |
| status | string Enum: "running" "stopping" "stopped" "failed" Status of the continuous analysis run. Values: running = actively capturing frames, stopping = stop requested, stopped = stopped successfully, failed = ended with an error.
|
| frames_captured | integer <int64> [ 0 .. 9223372036854776000 ] |
| analyses_processed | integer <int64> [ 0 .. 9223372036854776000 ] |
| error_message | string |
| started_at | string or null <date-time> |
| stopped_at | string or null <date-time> |
{- "status": "running",
- "frames_captured": 9223372036854776000,
- "analyses_processed": 9223372036854776000,
- "error_message": "string",
- "started_at": "2019-08-24T14:15:22Z",
- "stopped_at": "2019-08-24T14:15:22Z"
}{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 9223372036854776000,
- "api_port": 9223372036854776000,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 9223372036854776000,
- "analyses_processed": 9223372036854776000,
- "error_message": "string",
- "created": "2019-08-24T14:15:22Z",
- "started_at": "2019-08-24T14:15:22Z",
- "stopped_at": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z"
}List all analyses sorted by creation date (newest first).
[- {
- "category": "string",
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "ISC": 100,
- "IRC": 100,
- "created": "2019-08-24T14:15:22Z",
- "ticket": 0,
- "id": 0,
- "commodity": "string",
- "extra_data": null,
- "collection": 0
}
]This endpoint receives a request, creates a photo, and saves the analysis without frontend interaction.
| ticket required | integer Associated ticket number. |
| camera_id | integer or null Optional camera identifier used when the request must capture a new photo. |
| commodity required | string The name of the existing commodity variety. |
{- "ticket": 0,
- "camera_id": 0,
- "commodity": "string"
}{- "category": "string",
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "ISC": 100,
- "IRC": 100,
- "created": "2019-08-24T14:15:22Z",
- "ticket": 0,
- "id": 0,
- "commodity": "string",
- "extra_data": null,
- "collection": 0,
- "photo": {
- "created": "2019-08-24T14:15:22Z",
- "image": "string",
- "mimetype": "string"
}, - "segmented_photo": {
- "created": "2019-08-24T14:15:22Z",
- "image": "string",
- "mimetype": "string"
}
}Return a specific analysis along with its associated photos.
| id required | integer A unique integer value identifying this analysis. |
{- "category": "string",
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "ISC": 100,
- "IRC": 100,
- "created": "2019-08-24T14:15:22Z",
- "ticket": 0,
- "id": 0,
- "commodity": "string",
- "extra_data": null,
- "collection": 0,
- "photo": {
- "created": "2019-08-24T14:15:22Z",
- "image": "string",
- "mimetype": "string"
}, - "segmented_photo": {
- "created": "2019-08-24T14:15:22Z",
- "image": "string",
- "mimetype": "string"
}
}Only ticket and/or commodity fields are accepted.
| id required | integer A unique integer value identifying this analysis. |
| ticket | integer Ticket number associated with the analysis. |
| commodity | string Name of the commercial variety |
| extra_data | any Additional metadata associated with the analysis. |
{- "ticket": 0,
- "commodity": "string",
- "extra_data": null
}{- "category": "string",
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "ISC": 100,
- "IRC": 100,
- "created": "2019-08-24T14:15:22Z",
- "ticket": 0,
- "id": 0,
- "commodity": "string",
- "extra_data": null,
- "collection": 0
}Returns aggregation data. Requires filtering by ticket through query params.
| ticket required | integer Associated ticket number. |
{- "category": "string",
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "ISC": 0,
- "IRC": 0,
- "created_at_list": [
- "2019-08-24T14:15:22Z"
], - "tickets": [
- 0
], - "ids": [
- 0
], - "commodities": [
- "string"
], - "extra_data_list": [
- null
]
}List all analysis collections sorted by creation date (newest first) using standard DRF pagination.
| page | integer Page number to retrieve. |
| page_size | integer Number of collections per page. |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "ticket": 0,
- "commodity": "string",
- "extra_data": null,
- "created": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z",
- "analyses_count": 0,
- "category": "string",
- "ISC": "string",
- "IRC": "string",
- "latest_continuous_run": { }
}
]
}Create a new analysis collection for the selected ticket and commodity.
| ticket | integer or null Ticket number associated with the analysis. |
| commodity required | integer Name of the commercial variety. |
| extra_data | any Additional metadata associated with the analysis collection. |
{- "ticket": 0,
- "commodity": 0,
- "extra_data": null
}{- "id": 0,
- "ticket": 0,
- "commodity": "string",
- "extra_data": null,
- "created": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z",
- "analyses_count": 0,
- "category": "string",
- "ISC": 0,
- "IRC": 0,
- "latest_continuous_run": { },
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "analyses": [
- {
- "id": 0,
- "ticket": "string",
- "created": "2019-08-24T14:15:22Z",
- "commodity": "string",
- "camera": {
- "id": 0,
- "name": "string"
}, - "thumbnail": "string",
- "category": {
- "id": 0,
- "name": "string",
- "color": "string",
- "order": 9223372036854776000
}, - "indice_sanitario_ceresia": 0,
- "indice_recogida_ceresia": 0,
- "collection": 0,
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
]
}
]
}Return a collection with its aggregated data and linked analyses.
| id required | integer A unique integer value identifying this analysis collection. |
{- "id": 0,
- "ticket": 0,
- "commodity": "string",
- "extra_data": null,
- "created": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z",
- "analyses_count": 0,
- "category": "string",
- "ISC": 0,
- "IRC": 0,
- "latest_continuous_run": { },
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "analyses": [
- {
- "id": 0,
- "ticket": "string",
- "created": "2019-08-24T14:15:22Z",
- "commodity": "string",
- "camera": {
- "id": 0,
- "name": "string"
}, - "thumbnail": "string",
- "category": {
- "id": 0,
- "name": "string",
- "color": "string",
- "order": 9223372036854776000
}, - "indice_sanitario_ceresia": 0,
- "indice_recogida_ceresia": 0,
- "collection": 0,
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
]
}
]
}Update the ticket, commodity, or extra data of an existing collection.
| id required | integer A unique integer value identifying this analysis collection. |
| ticket | integer or null Ticket number associated with the analysis. |
| commodity | integer Name of the commercial variety. |
| extra_data | any Additional metadata associated with the analysis collection. |
{- "ticket": 0,
- "commodity": 0,
- "extra_data": null
}{- "id": 0,
- "ticket": 0,
- "commodity": "string",
- "extra_data": null,
- "created": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z",
- "analyses_count": 0,
- "category": "string",
- "ISC": 0,
- "IRC": 0,
- "latest_continuous_run": { },
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
], - "analyses": [
- {
- "id": 0,
- "ticket": "string",
- "created": "2019-08-24T14:15:22Z",
- "commodity": "string",
- "camera": {
- "id": 0,
- "name": "string"
}, - "thumbnail": "string",
- "category": {
- "id": 0,
- "name": "string",
- "color": "string",
- "order": 9223372036854776000
}, - "indice_sanitario_ceresia": 0,
- "indice_recogida_ceresia": 0,
- "collection": 0,
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
]
}
]
}List or create analyses inside the collection. GET uses standard DRF pagination.
| id required | integer A unique integer value identifying this analysis collection. |
| page | integer Page number to retrieve. |
| page_size | integer Number of analyses per page. |
{- "id": 0,
- "ticket": "string",
- "created": "2019-08-24T14:15:22Z",
- "commodity": "string",
- "camera": {
- "id": 0,
- "name": "string"
}, - "thumbnail": "string",
- "category": {
- "id": 0,
- "name": "string",
- "color": "string",
- "order": 9223372036854776000
}, - "indice_sanitario_ceresia": 0,
- "indice_recogida_ceresia": 0,
- "collection": 0,
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
]
}List or create analyses inside the collection. GET uses standard DRF pagination.
| id required | integer A unique integer value identifying this analysis collection. |
| page | integer Page number to retrieve. |
| page_size | integer Number of analyses per page. |
| photo | integer The photograph under analysis, returned compressed at 30% quality. |
| camera_id | integer or null Optional camera identifier used when the request must capture a new photo. |
{- "photo": 0,
- "camera_id": 0
}{- "id": 0,
- "ticket": "string",
- "created": "2019-08-24T14:15:22Z",
- "commodity": "string",
- "camera": {
- "id": 0,
- "name": "string"
}, - "thumbnail": "string",
- "category": {
- "id": 0,
- "name": "string",
- "color": "string",
- "order": 9223372036854776000
}, - "indice_sanitario_ceresia": 0,
- "indice_recogida_ceresia": 0,
- "collection": 0,
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
]
}Creates a new fruit variety.
| name required | string <= 200 characters Name of the commercial variety |
| display_name | string <= 200 characters Human-readable label shown in the UI. If left empty, it defaults to the value of 'name'. |
{- "name": "string",
- "display_name": "string"
}{- "id": 0,
- "name": "string",
- "display_name": "string"
}Completely replaces an existing variety.
| id required | integer A unique integer value identifying this commodity. |
| name required | string <= 200 characters Name of the commercial variety |
| display_name | string <= 200 characters Human-readable label shown in the UI. If left empty, it defaults to the value of 'name'. |
{- "name": "NuevaVariedad",
- "display_name": "Variedad Nueva"
}{- "id": 0,
- "name": "string",
- "display_name": "string"
}Performs a partial update of specific variety fields.
| id required | integer A unique integer value identifying this commodity. |
| name | string <= 200 characters Name of the commercial variety |
| display_name | string <= 200 characters Human-readable label shown in the UI. If left empty, it defaults to the value of 'name'. |
{- "name": "VariedadActualizada",
- "display_name": "Variedad Nueva"
}{- "id": 0,
- "name": "string",
- "display_name": "string"
}Create a public continuous analysis run for a selected camera and enqueue frame capture.
| collection | integer or null |
| ticket | integer or null |
| commodity | integer |
| extra_data | any |
| camera_id | integer or null Optional camera identifier used to start the public continuous run. |
{- "collection": 0,
- "ticket": 0,
- "commodity": 0,
- "extra_data": null,
- "camera_id": 0
}{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 9223372036854776000,
- "api_port": 9223372036854776000,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 9223372036854776000,
- "analyses_processed": 9223372036854776000,
- "error_message": "string",
- "created": "2019-08-24T14:15:22Z",
- "started_at": "2019-08-24T14:15:22Z",
- "stopped_at": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z"
}| id required | integer A unique integer value identifying this continuous analysis run. |
{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 9223372036854776000,
- "api_port": 9223372036854776000,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 9223372036854776000,
- "analyses_processed": 9223372036854776000,
- "error_message": "string",
- "created": "2019-08-24T14:15:22Z",
- "started_at": "2019-08-24T14:15:22Z",
- "stopped_at": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z"
}Request a public continuous analysis run to stop.
| id required | integer A unique integer value identifying this continuous analysis run. |
| status | string Enum: "running" "stopping" "stopped" "failed" Status of the continuous analysis run. Values: running = actively capturing frames, stopping = stop requested, stopped = stopped successfully, failed = ended with an error.
|
| frames_captured | integer <int64> [ 0 .. 9223372036854776000 ] |
| analyses_processed | integer <int64> [ 0 .. 9223372036854776000 ] |
| error_message | string |
| started_at | string or null <date-time> |
| stopped_at | string or null <date-time> |
{- "status": "running",
- "frames_captured": 9223372036854776000,
- "analyses_processed": 9223372036854776000,
- "error_message": "string",
- "started_at": "2019-08-24T14:15:22Z",
- "stopped_at": "2019-08-24T14:15:22Z"
}{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 9223372036854776000,
- "api_port": 9223372036854776000,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 9223372036854776000,
- "analyses_processed": 9223372036854776000,
- "error_message": "string",
- "created": "2019-08-24T14:15:22Z",
- "started_at": "2019-08-24T14:15:22Z",
- "stopped_at": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z"
}Creates a new fruit variety.
| name required | string <= 200 characters Name of the commercial variety |
| display_name | string <= 200 characters Human-readable label shown in the UI. If left empty, it defaults to the value of 'name'. |
{- "name": "string",
- "display_name": "string"
}{- "id": 0,
- "name": "string",
- "display_name": "string"
}Completely replaces an existing variety.
| id required | integer A unique integer value identifying this commodity. |
| name required | string <= 200 characters Name of the commercial variety |
| display_name | string <= 200 characters Human-readable label shown in the UI. If left empty, it defaults to the value of 'name'. |
{- "name": "NuevaVariedad",
- "display_name": "Variedad Nueva"
}{- "id": 0,
- "name": "string",
- "display_name": "string"
}Performs a partial update of specific variety fields.
| id required | integer A unique integer value identifying this commodity. |
| name | string <= 200 characters Name of the commercial variety |
| display_name | string <= 200 characters Human-readable label shown in the UI. If left empty, it defaults to the value of 'name'. |
{- "name": "VariedadActualizada",
- "display_name": "Variedad Nueva"
}{- "id": 0,
- "name": "string",
- "display_name": "string"
}Create a public continuous analysis run for a selected camera and enqueue frame capture.
| collection | integer or null |
| ticket | integer or null |
| commodity | integer |
| extra_data | any |
| camera_id | integer or null Optional camera identifier used to start the public continuous run. |
{- "collection": 0,
- "ticket": 0,
- "commodity": 0,
- "extra_data": null,
- "camera_id": 0
}{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 9223372036854776000,
- "api_port": 9223372036854776000,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 9223372036854776000,
- "analyses_processed": 9223372036854776000,
- "error_message": "string",
- "created": "2019-08-24T14:15:22Z",
- "started_at": "2019-08-24T14:15:22Z",
- "stopped_at": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z"
}| id required | integer A unique integer value identifying this continuous analysis run. |
{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 9223372036854776000,
- "api_port": 9223372036854776000,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 9223372036854776000,
- "analyses_processed": 9223372036854776000,
- "error_message": "string",
- "created": "2019-08-24T14:15:22Z",
- "started_at": "2019-08-24T14:15:22Z",
- "stopped_at": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z"
}Request a public continuous analysis run to stop.
| id required | integer A unique integer value identifying this continuous analysis run. |
| status | string Enum: "running" "stopping" "stopped" "failed" Status of the continuous analysis run. Values: running = actively capturing frames, stopping = stop requested, stopped = stopped successfully, failed = ended with an error.
|
| frames_captured | integer <int64> [ 0 .. 9223372036854776000 ] |
| analyses_processed | integer <int64> [ 0 .. 9223372036854776000 ] |
| error_message | string |
| started_at | string or null <date-time> |
| stopped_at | string or null <date-time> |
{- "status": "running",
- "frames_captured": 9223372036854776000,
- "analyses_processed": 9223372036854776000,
- "error_message": "string",
- "started_at": "2019-08-24T14:15:22Z",
- "stopped_at": "2019-08-24T14:15:22Z"
}{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 9223372036854776000,
- "api_port": 9223372036854776000,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 9223372036854776000,
- "analyses_processed": 9223372036854776000,
- "error_message": "string",
- "created": "2019-08-24T14:15:22Z",
- "started_at": "2019-08-24T14:15:22Z",
- "stopped_at": "2019-08-24T14:15:22Z",
- "last_modified": "2019-08-24T14:15:22Z"
}