Working with Seed Parameters π±
Overview
The Seed Parameters domain provides a comprehensive system for managing agronomic and phenotypic characteristics of seeds. This domain enables organizations to define, categorize, and track various seed characteristics such as maturity groups, disease resistance, calibration parameters, and other attributes across different crops and locations.
Seed parameters act as templates or definitions that can be assigned to individual seeds. Once a parameter is created (e.g., "Maturity Group"), it can be associated with multiple seeds, each having their own specific value for that parameter. This relationship between seed parameters and seed varieties allows for flexible and standardized characteristic tracking across the entire seed catalog.
Cardinality summary
- Seed Parameter β 1..* Localized Crops (crop-location associations)
- Seed Parameter β 0..* Parameter Ranges (predefined value ranges)
- Seed Parameter β 0..* Seeds (many-to-many relationship through parameter values)
Seed Parameter
βββ Localized Crops (1..*)
βββ Parameter Ranges (0..*)
βββ Seeds (0..*)
Key Concepts
| Concept | Description |
|---|---|
| Seed Parameter | Agronomic or phenotypic characteristic that can be measured or tracked for seeds |
| Parameter Name | Name of the characteristic being measured (e.g., "Maturity Group", "Disease Resistance") |
| Parameter Source | Data source or organization providing the parameter information |
| Parameter Category | Classification of the parameter (e.g., phenotypic, genetic, disease rating) |
| Parameter Type | Data type of the parameter: numerical, text, bit (boolean), or array |
| Parameter Range | Predefined set of valid values or options for the parameter |
| Range Type | Type of range value: BIT (boolean), TEXT (string), or NUMERICAL (numeric) |
| Parameter Value | The actual value assigned to a seed variety for a specific parameter (e.g., "III" for Maturity Group) |
Understanding Seed Parameter Interactions
Seed parameters have two key types of relationships:
Parameter β Localized Crop Association (Definition Level)
- When you create a parameter, you define which crop-location combinations it applies to
- This determines the scope and availability of the parameter
- Example: A "Maturity Group" parameter is defined for Corn in US, BR, and FR
- Managed through:
POST/PUT /v2/catalog/seeds/parameterendpoints
Parameter β Seed Variety Relationship (Value Assignment Level)
- After parameters are defined, you assign specific values to individual seeds
- This creates the actual characteristic data for each seed
- Example: Seed "Pioneer P1234" (Corn/US) gets assigned "Maturity Group: III"
- Managed through:
POST /v2/catalog/seeds/relationshipendpoints
API Documentation
For complete API reference including request/response schemas, authentication, and interactive testing, visit:
π Seed Parameters API Documentation - Interactive API documentation with request/response examples
Available Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /v2/catalog/seeds/parameter | Define a new seed parameter and associate it with localized crops (crop-location combinations) |
| GET | /v2/catalog/seeds/parameter/{id} | Get a specific seed parameter definition with all details including ranges and associated localized crops |
| PUT | /v2/catalog/seeds/parameter/{id} | Update parameter definition: name, category, type, or localized crop associations |
| DELETE | /v2/catalog/seeds/parameter/{id} | Soft delete a parameter definition (also removes all seed-parameter relationships) |
| POST | /v2/catalog/seeds/parameter/query | Advanced search for parameter definitions with filtering and pagination |
| POST | /v2/catalog/seeds/relationship | Assign values - Bulk create/update relationships between seed varieties and parameters with specific values (Multi-Status 207) |
| POST | /v2/catalog/seeds/relationship/delete | Remove assignments - Delete value assignments between seed varieties and parameters |
Important: You must first create a parameter and associate it with localized crops before you can assign values to seed varieties. The seed variety must also belong to one of the localized crops associated with the parameter.
Business Rules
Localized Crop Association (Parameter Definition)
Each seed parameter must be associated with at least one localized crop when created, to define the scope and availability of the parameter, which crop-location combinations can use it
Parameter Ranges
Parameters can define predefined value ranges to standardize data entry:
- Ranges are optional but provide value consistency when used
- Each range must have a sequence number for ordering
- Range types (BIT, TEXT, NUMERICAL) should align with parameter type
- Range values can include optional descriptions for clarification
Seed-Parameter Relationships (Value Assignment)
Managing the assignment of specific parameter values to individual seeds:
- Purpose: Assigns actual characteristic values to individual seeds (e.g., "Maturity Group: III" for Pioneer P1234)
- Prerequisites before creating a relationship:
- The parameter must exist and be defined
- The parameter must be associated with at least one localized crop
- The seed variety must exist
- The seed variety must belong to a localized crop that the parameter is associated with
Error Codes
Seed Parameter Errors
| Code | Message | HTTP Status | When Triggered |
|---|---|---|---|
| ECSP001 | Seed parameter with id {id} does not exist | 404 NOT_FOUND | Requested seed parameter ID not found during GET, UPDATE, or DELETE operations |
| ECSP002 | Some Seed Parameters Ids do not exist | 404 NOT_FOUND | One or more seed parameter IDs in a batch operation don't exist |
Typical Workflows
Basic Seed Parameter Management
- Create Seed Parameter - Define new agronomic or phenotypic characteristics with categories, types, and optional ranges
- Update Seed Parameter - Modify parameter properties like name, category, description, or associated crops
- Retrieve Seed Parameter - Get parameter details including ranges and localized crop associations
- List Seed Parameters - Query parameters by crop, location, category, or other filters
- Delete Seed Parameter - Soft delete parameters no longer in use
Seed-Parameter Relationship Management
- Bulk Assignment - Create multiple parameter assignments for seed varieties in a single operation
- Value Assignment - Assign specific values to seed-parameter relationships (e.g., "Maturity Group: III")
- Metadata Tracking - Include source, pest information, rating year, and display order
- Multi-Status Response - Receive detailed status for each relationship in bulk operations
- Relationship Deletion - Remove parameter assignments from seed varieties when no longer applicable
- Data Validation - System validates that both seed variety and parameter exist before creating relationships
Search and Filtering
- Location-Based Search - Find parameters available for specific countries through localized crops
- Crop Association - Filter parameters by crop type
- Category Filtering - Query parameters by category (e.g., all disease rating parameters)
- Source Filtering - Filter by data source organization (AHDB, ARVALIS, CTPS/GEVES, etc.)
Next Steps
After creating your seed parameters, you can: