c_agri_trade_code/docs/api/bruno/quality/post-lot-decision.bru

36 lines
617 B
Plaintext

meta {
name: Execute Lot FSM Quality Decision
type: http
seq: 2
}
post {
url: {{baseUrl}}/api/v1/quality/lots/c1000000-0000-0000-0000-000000000001/decision
body: json
auth: bearer
}
auth:bearer {
token: {{jwtToken}}
}
headers {
Content-Type: application/json
X-Tenant-ID: {{tenantId}}
Accept: application/json
}
body:json {
{
"decision": "RELEASED",
"remarks": "Assay approved. Produce released for trading."
}
}
docs {
# Execute Lot FSM Quality Decision (FR-QUALITYANDLOTCONTROL-003)
Executes finite state machine transitions from QUALITY_HOLD to RELEASED or REJECTED.
}