c_agri_trade/docs/api/bruno/policies/create-policy.bru

43 lines
918 B
Plaintext

meta {
name: Create Tenant Operating Policy
type: http
seq: 1
}
post {
url: {{baseUrl}}/api/v1/policies
body: json
auth: bearer
}
auth:bearer {
token: {{jwtToken}}
}
headers {
X-Tenant-ID: {{tenantId}}
Content-Type: application/json
Accept: application/json
}
body:json {
{
"weighbridge_tolerance_pct": 0.5,
"moisture_deduction_threshold_pct": 12.0,
"credit_watch_threshold_pct": 80.0,
"credit_lock_threshold_pct": 100.0,
"qc_required_default": true,
"partner_dispatch_override_ceiling_inr": 5000000.0,
"effective_from": "2026-10-01T00:00:00Z",
"effective_to": null,
"change_reason": "Baseline operating policy for Q4 mandi procurement"
}
}
docs {
# Create Tenant Operating Policy (FR-TENANTOPERATINGPOLICIES-001)
Publishes an effective-dated tenant operating policy with risk parameters, auto-incrementing version, and immutable audit capture.
}