Trace

Upload a custom rule pack

Register a custom rule pack (spec §5.3) in the Trace DSL. Structural validation only here (pack_id, version, non-empty rules); the kernel compiles + deep-validates it models-side at pull time, and citations/wording are attorney-curated out of band. Requires the trace:configure scope.

post/v1/trace/rule-packs

Request

  • Base URL: https://api.pyai.com
  • URL: https://api.pyai.com/v1/trace/rule-packs
  • Auth: one of:
    • HTTP bearer
    • API key in header x-api-key

Request body

pack_idstring required
versionstring required
jurisdictionstring
legal_statusstring

Provenance / attorney-curation status.

rulesobject[] required

Response

Rule pack created

objectstring
idstring
pack_idstring
versionstring
builtinboolean

True for PyAI's bundled packs; false for tenant uploads.

jurisdictionstring nullable
legal_statusstring nullable
etagstring
status'active' | 'deprecated'
created_atinteger

Unix ms.

specobject

The authored DSL (only on the single-pack GET).

Example response

{
  "object": "trace.rule_pack",
  "id": "tpack_...",
  "pack_id": "tcpa"
}

Changes

No recorded changes to this operation across all 1 revision of this API.