Skip to content

Rollback Rule Set

Rolls back a rule set to an earlier published version without changing the stable rule set ID. Later published versions remain in history.

POST /v1/projects/:project_id/extractor-rule-sets/:id/rollback
POST /v1/projects/:project_id/pricing-rule-sets/:id/rollback
Terminal window
Authorization: Bearer <api-key>

Requires rules write access.

Field Required Description
project_id Yes Project that owns the rule set.
id Yes Stable rule set ID.
{
"version": 2
}

version must reference a published version.

{
"status": "rolled_back",
"rule_set": {
"id": "ers_openai",
"version": 2,
"status": "published"
}
}

Rollback updates the current published version for the rule set ID. New ingestion using the same rule set ID reads that current version from the rule store.