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 Un valor de entero único que identifique este 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 Un valor de entero único que identifique este 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 analysis collections using standard DRF pagination. By default, the most recently modified collections are returned first.
| ordering | string Comma-separated fields used to order the results. Prefix a field with '-' for descending order. Allowed fields: id, ticket, created, last_modified, commodity. |
| page | integer Page number to retrieve. |
| page_size | integer Number of collections per page. |
| search | string Un término de búsqueda. |
{- "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": 32767
}, - "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 Un valor de entero único que identifique este 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": 32767
}, - "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 Un valor de entero único que identifique este 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": 32767
}, - "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 Un valor de entero único que identifique este analysis collection. |
| ordering | string Comma-separated fields used to order the results. Prefix a field with '-' for descending order. Allowed fields: id, created, last_modified, indice_sanitario_ceresia, indice_recogida_ceresia, category. |
| 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": 32767
}, - "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 Un valor de entero único que identifique este analysis collection. |
| ordering | string Comma-separated fields used to order the results. Prefix a field with '-' for descending order. Allowed fields: id, created, last_modified, indice_sanitario_ceresia, indice_recogida_ceresia, category. |
| 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": 32767
}, - "indice_sanitario_ceresia": 0,
- "indice_recogida_ceresia": 0,
- "collection": 0,
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
]
}Global order: collection ID, creation date, photo evaluation ID. Only evaluations with original and segmented photos are destinations. List filters and pagination do not affect this operation.
| id required | integer Un valor de entero único que identifique este analysis. |
{- "previous": 0,
- "next": 0
}List campaign analysis collections using standard DRF pagination and optionally include each collection's aggregated dataset.
| include_dataset | boolean Include the aggregated dataset in each collection summary. |
| include_thumbnail | boolean Include the collection thumbnail in each summary. Defaults to true; set false for compact responses such as campaign analysis. |
| ordering | string Comma-separated fields used to order the results. Prefix a field with '-' for descending order. Allowed fields: id, ticket, created, last_modified, commodity. |
| page | integer Page number to retrieve. |
| page_size | integer Number of collections per page. |
| search | string Un término de búsqueda. |
{- "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": { },
- "thumbnail": "string"
}
]
}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": 32767
}, - "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 Un valor de entero único que identifique este 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": 32767
}, - "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 Un valor de entero único que identifique este 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": 32767
}, - "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 Un valor de entero único que identifique este analysis collection. |
| ordering | string Comma-separated fields used to order the results. Prefix a field with '-' for descending order. Allowed fields: id, created, last_modified, indice_sanitario_ceresia, indice_recogida_ceresia, category. |
| 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": 32767
}, - "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 Un valor de entero único que identifique este analysis collection. |
| ordering | string Comma-separated fields used to order the results. Prefix a field with '-' for descending order. Allowed fields: id, created, last_modified, indice_sanitario_ceresia, indice_recogida_ceresia, category. |
| 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": 32767
}, - "indice_sanitario_ceresia": 0,
- "indice_recogida_ceresia": 0,
- "collection": 0,
- "dataset": [
- {
- "feature": "string",
- "percentage": "string"
}
]
}Global collection ID order, independent of list filters or pagination.
| id required | integer Un valor de entero único que identifique este analysis collection. |
{- "previous": 0,
- "next": 0
}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": 2147483647,
- "api_port": 2147483647,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "pending_frames": 0,
- "error_message": "string",
- "available_actions": [
- "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": 2147483647,
- "api_port": 2147483647,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "pending_frames": 0,
- "error_message": "string",
- "available_actions": [
- "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 Un valor de entero único que identifique este continuous analysis run. |
{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 2147483647,
- "api_port": 2147483647,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "pending_frames": 0,
- "error_message": "string",
- "available_actions": [
- "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"
}Pause frame capture while preserving the run and collection.
| id required | integer Un valor de entero único que identifique este continuous analysis run. |
{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 2147483647,
- "api_port": 2147483647,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "pending_frames": 0,
- "error_message": "string",
- "available_actions": [
- "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"
}Resume a paused or failed run using the same collection.
| id required | integer Un valor de entero único que identifique este continuous analysis run. |
{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 2147483647,
- "api_port": 2147483647,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "pending_frames": 0,
- "error_message": "string",
- "available_actions": [
- "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 Un valor de entero único que identifique este continuous analysis run. |
| status | string Enum: "running" "degraded" "paused" "stopping" "draining" "stopped" "failed" Status of the continuous analysis run. Values: running = actively capturing frames, degraded = capturing with errors, paused = capture paused, stopping = stop requested, draining = processing queued frames, stopped = stopped successfully, failed = ended with an error.
|
| frames_captured | integer [ 0 .. 2147483647 ] |
| analyses_processed | integer [ 0 .. 2147483647 ] |
| failed_frames_count | integer [ 0 .. 2147483647 ] |
| consecutive_failures | integer [ 0 .. 2147483647 ] |
| error_message | string |
| started_at | string or null <date-time> |
| stopped_at | string or null <date-time> |
{- "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "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": 2147483647,
- "api_port": 2147483647,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "pending_frames": 0,
- "error_message": "string",
- "available_actions": [
- "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"
}| foto_id | integer Identificador histórico de la foto de origen. |
| page | integer Un número de página dentro del conjunto de resultados paginado. |
| page_size | integer Número de resultados a devolver por página. |
{- "count": 123,
- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "foto_id": 9223372036854776000,
- "site_name": "string",
- "created": "2019-08-24T14:15:22Z",
- "x": 2147483647,
- "y": 2147483647,
- "comment": "string",
- "status": "string"
}
]
}| foto_id required | integer <int64> [ 0 .. 9223372036854776000 ] |
| x required | integer [ 0 .. 2147483647 ] |
| y required | integer [ 0 .. 2147483647 ] |
| comment | string <= 4000 characters |
{- "foto_id": 9223372036854776000,
- "x": 2147483647,
- "y": 2147483647,
- "comment": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "foto_id": 9223372036854776000,
- "site_name": "string",
- "created": "2019-08-24T14:15:22Z",
- "x": 2147483647,
- "y": 2147483647,
- "comment": "string",
- "status": "string"
}| id required | string <uuid> Un Cadena UUID que identifique este improvement sample. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "foto_id": 9223372036854776000,
- "site_name": "string",
- "created": "2019-08-24T14:15:22Z",
- "x": 2147483647,
- "y": 2147483647,
- "comment": "string",
- "status": "string"
}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 Un valor de entero único que identifique este 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 Un valor de entero único que identifique este 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 analysis collections using standard DRF pagination. By default, the most recently modified collections are returned first.
| ordering | string Comma-separated fields used to order the results. Prefix a field with '-' for descending order. Allowed fields: id, ticket, created, last_modified, commodity. |
| page | integer Page number to retrieve. |
| page_size | integer Number of collections per page. |
| search | string Un término de búsqueda. |
{- "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": 32767
}, - "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 Un valor de entero único que identifique este 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": 32767
}, - "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 Un valor de entero único que identifique este 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": 32767
}, - "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 Un valor de entero único que identifique este analysis collection. |
| ordering | string Comma-separated fields used to order the results. Prefix a field with '-' for descending order. Allowed fields: id, created, last_modified, indice_sanitario_ceresia, indice_recogida_ceresia, category. |
| 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": 32767
}, - "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 Un valor de entero único que identifique este analysis collection. |
| ordering | string Comma-separated fields used to order the results. Prefix a field with '-' for descending order. Allowed fields: id, created, last_modified, indice_sanitario_ceresia, indice_recogida_ceresia, category. |
| 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": 32767
}, - "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 Un valor de entero único que identifique este 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 Un valor de entero único que identifique este 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": 2147483647,
- "api_port": 2147483647,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "pending_frames": 0,
- "error_message": "string",
- "available_actions": [
- "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 Un valor de entero único que identifique este continuous analysis run. |
{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 2147483647,
- "api_port": 2147483647,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "pending_frames": 0,
- "error_message": "string",
- "available_actions": [
- "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"
}Pause frame capture while preserving the run and collection.
| id required | integer Un valor de entero único que identifique este continuous analysis run. |
{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 2147483647,
- "api_port": 2147483647,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "pending_frames": 0,
- "error_message": "string",
- "available_actions": [
- "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"
}Resume a paused or failed run using the same collection.
| id required | integer Un valor de entero único que identifique este continuous analysis run. |
{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 2147483647,
- "api_port": 2147483647,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "pending_frames": 0,
- "error_message": "string",
- "available_actions": [
- "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 Un valor de entero único que identifique este continuous analysis run. |
| status | string Enum: "running" "degraded" "paused" "stopping" "draining" "stopped" "failed" Status of the continuous analysis run. Values: running = actively capturing frames, degraded = capturing with errors, paused = capture paused, stopping = stop requested, draining = processing queued frames, stopped = stopped successfully, failed = ended with an error.
|
| frames_captured | integer [ 0 .. 2147483647 ] |
| analyses_processed | integer [ 0 .. 2147483647 ] |
| failed_frames_count | integer [ 0 .. 2147483647 ] |
| consecutive_failures | integer [ 0 .. 2147483647 ] |
| error_message | string |
| started_at | string or null <date-time> |
| stopped_at | string or null <date-time> |
{- "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "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": 2147483647,
- "api_port": 2147483647,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "pending_frames": 0,
- "error_message": "string",
- "available_actions": [
- "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"
}{- "site_name": "string",
- "fruit": "uva",
- "idioma": "es",
- "contact_email": "user@example.com",
- "continuous_analysis_limit": 1,
- "continuous_queue_warning_threshold": 1,
- "continuous_queue_hard_limit": 1,
- "continuous_processing_failure_threshold": 1,
- "cameras": [
- {
- "id": 0,
- "name": "string",
- "video_port": 2147483647,
- "api_port": 2147483647,
- "interactiva": true,
- "capture_mode": "discrete"
}
], - "deployment_version": "string",
- "site_logo_url": "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 Un valor de entero único que identifique este 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 Un valor de entero único que identifique este 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": 2147483647,
- "api_port": 2147483647,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "pending_frames": 0,
- "error_message": "string",
- "available_actions": [
- "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 Un valor de entero único que identifique este continuous analysis run. |
{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 2147483647,
- "api_port": 2147483647,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "pending_frames": 0,
- "error_message": "string",
- "available_actions": [
- "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"
}Pause frame capture while preserving the run and collection.
| id required | integer Un valor de entero único que identifique este continuous analysis run. |
{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 2147483647,
- "api_port": 2147483647,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "pending_frames": 0,
- "error_message": "string",
- "available_actions": [
- "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"
}Resume a paused or failed run using the same collection.
| id required | integer Un valor de entero único que identifique este continuous analysis run. |
{- "id": 0,
- "collection": 0,
- "camera": {
- "id": 0,
- "name": "string",
- "video_port": 2147483647,
- "api_port": 2147483647,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "pending_frames": 0,
- "error_message": "string",
- "available_actions": [
- "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 Un valor de entero único que identifique este continuous analysis run. |
| status | string Enum: "running" "degraded" "paused" "stopping" "draining" "stopped" "failed" Status of the continuous analysis run. Values: running = actively capturing frames, degraded = capturing with errors, paused = capture paused, stopping = stop requested, draining = processing queued frames, stopped = stopped successfully, failed = ended with an error.
|
| frames_captured | integer [ 0 .. 2147483647 ] |
| analyses_processed | integer [ 0 .. 2147483647 ] |
| failed_frames_count | integer [ 0 .. 2147483647 ] |
| consecutive_failures | integer [ 0 .. 2147483647 ] |
| error_message | string |
| started_at | string or null <date-time> |
| stopped_at | string or null <date-time> |
{- "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "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": 2147483647,
- "api_port": 2147483647,
- "interactiva": true,
- "capture_mode": "discrete"
}, - "status": "running",
- "frames_captured": 2147483647,
- "analyses_processed": 2147483647,
- "failed_frames_count": 2147483647,
- "consecutive_failures": 2147483647,
- "pending_frames": 0,
- "error_message": "string",
- "available_actions": [
- "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"
}