Validate and publish a draft rule version (draft → active)
Requires ADMIN. Validates condition tree, effects, and cross-tenant poolIds.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Project (tenant) identifier. Row-level tenant isolation is enforced on every query.
Responses
Section titled “Responses”Published (active) version.
object
object
Missing/invalid path input (e.g. projectId) or invalid JSON body.
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Not authenticated (401 via requireAuthenticated) or insufficient project role (403).
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Resource not found (or cross-tenant — same 404).
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Not draft (error=invalid_state) or active-version conflict (error=active_version_conflict).
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Invalid condition JSON/tree, effects, or cross-tenant pool (error in [invalid_condition_json, invalid_condition_tree, invalid_effects_json, invalid_effects, cross_tenant_pool]).
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}