Skip to content

POST /batch/temp-data

Store Temp Step Data

POST
/batch/temp-data

Creates or updates a step execution data record with the given form data without setting the step as done.

Locates an existing StepExecutionData record by execution_record_key or
by (batch_key, step_key) pair. Merges the provided form_data values into
the existing record's fields in-place. If no record exists yet, a new one is
created by reading the step's form_fields definition and pre-populating all
fields. Returns 422 when the step is already marked done.

Emits: (direct transaction — no event class)
Required scope: traceability:batch-execution-record:read

Authorizations

OAuth2PasswordBearer
password Flow
Token URL"/api/auth"
Scopes:
  • "admin"User can access and edit users and system settings
  • "library"User can access and edit products
  • "production"User can access and edit production plans
  • "operator"User can access the operator panel and make production declarations

Request Body

application/json
JSON
{
  
"step_key": "step/quality-check-01",
  
"batch_key": "BATCH-A-042",
  
"execution_record_key": "exec-record-001",
  
"form_data": [
  
  
{
  
  
  
"form_field_key": "ffd-001",
  
  
  
"custom_field_key": "cf-001",
  
  
  
"value": "RAL 9005"
  
  
}
  
]
}

Responses

Successful Response

application/json
JSON
{
  
"status": 200,
  
"message": "string",
  
"detail": "string"
}

Samples

Powered by VitePress OpenAPI

Released under the Apache 2.0 License.