Update Rule Set Draft
Updates the current draft. If the rule set is already published and has no draft, the server creates the next version as a draft while keeping the stable rule set ID.
Endpoints
Section titled “Endpoints”PUT /v1/projects/:project_id/extractor-rule-sets/:id/draftPUT /v1/projects/:project_id/pricing-rule-sets/:id/draftAuthentication
Section titled “Authentication”Authorization: Bearer <api-key>Requires rules write access.
Path Parameters
Section titled “Path Parameters”| Field | Required | Description |
|---|---|---|
project_id |
Yes | Project that owns the rule set. |
id |
Yes | Stable rule set ID to edit. |
Extractor Request
Section titled “Extractor Request”{ "name": "OpenAI extractor", "subject": {}, "dimensions": [], "charge_item_extractors": []}Pricing Request
Section titled “Pricing Request”{ "name": "OpenAI fallback pricing", "extractor_rule_set_id": "ers_openai", "currency": "USD", "rules": []}Update requests accept only the documented business configuration fields. Unknown fields and system-managed fields such as id, version, status, tenant ID, project ID, and child pricing rule IDs are rejected with 400 Bad Request.
Response
Section titled “Response”Returns the draft version. The draft must be published before runtime uses it.