v4

latestOpenAPI 3.1.02026-08-08349225311.7 KB
runtime_mutations
rules

Import Rules From File Handler

Import a rule from an arbitrary file on the backend host.

The file's full contents become the rule body. Reading an arbitrary path is only safe on a single-user local backend, so it is refused in multi-tenant cloud mode where the filesystem is shared across clients.

post/api/rules/import/file

Request body

pathstring required
namestring nullable

Response

Successful Response

{"stackTrail":"paths:/api/rules/import/file:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}