runtime_mutations
rules

Create Rule Handler

Changed on
post/api/rules

Request

  • Base URL
    https://api.quadrillion.io (the document declares no server; this is the origin it was published from)
  • URL
    https://api.quadrillion.io/api/rules
  • Auth
    none declared

Request body

namestring required
descriptionstring
contentstring
rule_type'always' | 'manual' | 'pipeline'
globsstring[]
workspace_idstring nullable
kind'rule' | 'file-path'

Discriminator for which UI/dialog should render a rule.

rule (default) is a free-form natural-language rule. file_path is a structured rule whose body is generated from its path. The injected prompt content is the same for both — kind only affects the editor that opens for the rule.

file_pathstring nullable
pipelineobject nullable

Response

Successful Response

unknown required

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • warning

      removed the request property

    • info

      added the new optional request property