API reference
Update custom pricing
Use your API key to update mutable fields on an existing custom pricing row.
Updates mutable custom pricing fields. This endpoint accepts your API key and records an audit log entry.
Authentication
The rowid goes in the request body, not the URL path:
curl -X PATCH https://api.pylva.com/api/v1/custom-pricing \
-H "X-Pylva-Key: $PYLVA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"00000000-0000-0000-0000-000000000000","price_per_unit_usd":0.012}'
Request
{
"id": "00000000-0000-0000-0000-000000000000",
"price_per_unit_usd": 0.012,
"effective_to": "2026-07-01T00:00:00.000Z",
"notes": "Updated vendor list price."
}
Response
{
"ok": true
}
Notes
- Omitted fields are left unchanged.
- Explicit
nullclears nullable fields such aseffective_toandnotes. - A missing row returns a validation-style 404 response.