PUT
/
guardrails
/
{id}

Body

application/json
description
string

The rule description

input
object

The input rule

	{
		"name": "deny-select",
		"description": "<optional-description>",
		"input": {
			"rules": [
				{"type": "deny_words_list", "words": ["SELECT"], "pattern_regex": ""}
			]
		},
		"output": {
			"rules": [
				{"type": "pattern_match", "words": [], "pattern_regex": "[A-Z0-9]+"}
			]
		}
	}
name
string
required

Unique name for the rule

output
object

The output rule

	{
		"name": "deny-select",
		"description": "<optional-description>",
		"input": {
			"rules": [
				{"type": "deny_words_list", "words": ["SELECT"], "pattern_regex": ""}
			]
		},
		"output": {
			"rules": [
				{"type": "pattern_match", "words": [], "pattern_regex": "[A-Z0-9]+"}
			]
		}
	}

Response

200 - application/json
created_at
string

The time the resource was created

description
string

The rule description

id
string

The resource identifier

input
object

The input rule

	{
		"name": "deny-select",
		"description": "<optional-description>",
		"input": {
			"rules": [
				{"type": "deny_words_list", "words": ["SELECT"], "pattern_regex": "", "name": "<optional-name>"}
			]
		},
		"output": {
			"rules": [
				{"type": "pattern_match", "words": [], "pattern_regex": "[A-Z0-9]+"}
			]
		}
	}
name
string

Unique name for the rule

output
object

The output rule

	{
		"name": "deny-select",
		"description": "<optional-description>",
		"input": {
			"rules": [
				{"type": "deny_words_list", "words": ["SELECT"], "pattern_regex": "", "name": "<optional-name>"}
			]
		},
		"output": {
			"rules": [
				{"type": "pattern_match", "words": [], "pattern_regex": "[A-Z0-9]+"}
			]
		}
	}
updated_at
string

The time the resource was updated