curl -X PATCH "https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/guardrails/tg_4b2c" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123" \
-H "Content-Type: application/json" \
-d '{"enabled": false}'
runtm-api template guardrails update tmpl_abc123 tg_4b2c --disabled
{
"id": "tg_4b2c",
"template_id": "tmpl_abc123",
"organization_id": "org_abc123",
"type": "allowlist_rule_v0",
"name": "block-force-push",
"display_name": null,
"description": null,
"content": {"kind": "deny", "pattern": "git push --force*"},
"content_hash": "9c1185a5c5e9fc54612808977ee8f548b2258d31",
"enabled": false,
"position": 0,
"created_by_user_id": "user_123",
"updated_by_user_id": "user_123",
"created_at": "2026-07-28T19:00:00Z",
"updated_at": "2026-07-28T19:20:00Z"
}
Guardrails
Update Template Guardrail
Edit a template guardrail; omitted fields are left unchanged
PATCH
/
api
/
org-templates
/
{template_id}
/
guardrails
/
{guardrail_id}
curl -X PATCH "https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/guardrails/tg_4b2c" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123" \
-H "Content-Type: application/json" \
-d '{"enabled": false}'
runtm-api template guardrails update tmpl_abc123 tg_4b2c --disabled
{
"id": "tg_4b2c",
"template_id": "tmpl_abc123",
"organization_id": "org_abc123",
"type": "allowlist_rule_v0",
"name": "block-force-push",
"display_name": null,
"description": null,
"content": {"kind": "deny", "pattern": "git push --force*"},
"content_hash": "9c1185a5c5e9fc54612808977ee8f548b2258d31",
"enabled": false,
"position": 0,
"created_by_user_id": "user_123",
"updated_by_user_id": "user_123",
"created_at": "2026-07-28T19:00:00Z",
"updated_at": "2026-07-28T19:20:00Z"
}
Partial update of a template-scoped guardrail. Disabling (
"enabled": false) stops enforcement while keeping the definition, which is usually better than deleting.
Required scope: guardrails:write
Path Parameters
string
required
The template ID.
string
required
The guardrail ID.
Request Body
All fields optional; omitted fields are unchanged.string
New type (rarely changed).
string
New name.
string
New display name.
string
New description.
object
Replacement content object; validated against the type’s schema.
boolean
Enforce or pause the guardrail.
integer
New ordering position.
curl -X PATCH "https://app.runtm.com/api/cloud/org-templates/tmpl_abc123/guardrails/tg_4b2c" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123" \
-H "Content-Type: application/json" \
-d '{"enabled": false}'
runtm-api template guardrails update tmpl_abc123 tg_4b2c --disabled
{
"id": "tg_4b2c",
"template_id": "tmpl_abc123",
"organization_id": "org_abc123",
"type": "allowlist_rule_v0",
"name": "block-force-push",
"display_name": null,
"description": null,
"content": {"kind": "deny", "pattern": "git push --force*"},
"content_hash": "9c1185a5c5e9fc54612808977ee8f548b2258d31",
"enabled": false,
"position": 0,
"created_by_user_id": "user_123",
"updated_by_user_id": "user_123",
"created_at": "2026-07-28T19:00:00Z",
"updated_at": "2026-07-28T19:20:00Z"
}