industry-department-solutions
latest
false
- Overview
- API Resources

Supply Chain & Retail Solutions API guide
Last updated Apr 16, 2026
Production Lines
Overview
The Production Lines resource represents the manufacturing lines at a factory location that are configured to produce a specific product. Each record defines the capacity and batch characteristics of a production line for a given product, along with an optional validity window that governs when the configuration is active.
Resource Endpoint
/api/v2/ingest/object/INV_PRODUCTION_LINES_OOTB
/api/v2/ingest/object/INV_PRODUCTION_LINES_OOTB
Supported Methods
| Method | Return Type | Description |
|---|---|---|
| POST | Response | Ingest (create/update) Production Lines records via UPSERT operation |
Request Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Your Personal Access Token (PAT) from platform.peak.ai |
Content-Type | Yes | Must be application/json |
Properties
Primary Keys
- product_id (string) - Unique identifier for the product produced on this line. Part of the composite primary key.
- location_id (string) - Unique identifier for the factory location. Part of the composite primary key.
- production_line_id (string) - Unique identifier for the production line. Part of the composite primary key.
- created_at (timestamp) - Timestamp when the production line record was created. Part of the composite primary key.
Attributes
| Attribute | Data Type | Required | Description |
|---|---|---|---|
product_id | string | Yes | Unique identifier for the product manufactured on this line |
location_id | string | Yes | Unique identifier for the factory location hosting this line |
production_line_id | string | Yes | Unique identifier for the production line |
created_at | timestamp | Yes | Timestamp when this production line record was created |
line_capacity | integer | No | Maximum number of units this line can produce per unit time period |
product_batch_size | integer | No | Number of units produced per batch run on this line |
valid_from | timestamp | No | Datetime from which this production line configuration is effective |
valid_to | timestamp | No | Datetime at which this production line configuration expires |
Relationships
Outbound References
The production_lines resource does not reference any downstream resources as foreign keys.
Inbound References
The following resources are referenced by production_lines:
- products —
product_id→products.product_id - locations —
location_id→locations.location_id
JSON Representation
{
"solutionName": "INV_OOTB",
"data": [
{
"product_id": "PROD-001",
"location_id": "LOC-001",
"production_line_id": "LINE-001",
"created_at": "2025-01-01 00:00:00",
"line_capacity": 1000,
"product_batch_size": 50,
"valid_from": "2025-01-01 00:00:00",
"valid_to": "2025-12-31 23:59:59"
}
],
"operationType": "UPSERT"
}
{
"solutionName": "INV_OOTB",
"data": [
{
"product_id": "PROD-001",
"location_id": "LOC-001",
"production_line_id": "LINE-001",
"created_at": "2025-01-01 00:00:00",
"line_capacity": 1000,
"product_batch_size": 50,
"valid_from": "2025-01-01 00:00:00",
"valid_to": "2025-12-31 23:59:59"
}
],
"operationType": "UPSERT"
}
Example Request
curl -X POST \
'https://service.peak.ai/ingestion-api/api/v2/ingest/object/INV_PRODUCTION_LINES_OOTB' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"solutionName": "INV_OOTB",
"data": [
{
"product_id": "PROD-001",
"location_id": "LOC-001",
"production_line_id": "LINE-001",
"created_at": "2025-01-01 00:00:00",
"line_capacity": 1000,
"product_batch_size": 50,
"valid_from": "2025-01-01 00:00:00",
"valid_to": "2025-12-31 23:59:59"
}
],
"operationType": "UPSERT"
}'
curl -X POST \
'https://service.peak.ai/ingestion-api/api/v2/ingest/object/INV_PRODUCTION_LINES_OOTB' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"solutionName": "INV_OOTB",
"data": [
{
"product_id": "PROD-001",
"location_id": "LOC-001",
"production_line_id": "LINE-001",
"created_at": "2025-01-01 00:00:00",
"line_capacity": 1000,
"product_batch_size": 50,
"valid_from": "2025-01-01 00:00:00",
"valid_to": "2025-12-31 23:59:59"
}
],
"operationType": "UPSERT"
}'
Important Notes
product_id,location_id,production_line_id, andcreated_attogether form the composite primary key. All four fields must be provided on every record.line_capacityandproduct_batch_sizeare optional but recommended for accurate production planning and scheduling.valid_fromandvalid_toare optional and can be used to time-bound a production line's association with a product-location pair.- The
location_idshould reference a location whereis_factoryis set totruein the Locations resource. - All timestamps must be provided in
YYYY-MM-DD HH:MM:SSformat. - Records are ingested via UPSERT: an existing record with matching primary keys will be updated; otherwise a new record is inserted.