Skip to main content
PUT
/
guardrails
/
{id}
Update Guard Rail Rules
curl --request PUT \
  --url https://use.hoop.dev/api/guardrails/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "connection_ids": [
    "15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7",
    "15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D8"
  ],
  "description": "description about this rule",
  "input": {},
  "name": "my-strict-rule",
  "output": {}
}'
{
  "connection_ids": [
    "15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7",
    "15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D8"
  ],
  "created_at": "2024-07-25T15:56:35.317601Z",
  "description": "description about this rule",
  "id": "15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7",
  "input": {},
  "name": "my-strict-rule",
  "output": {},
  "updated_at": "2024-07-25T15:56:35.317601Z"
}

Body

application/json
name
string
required
Example:
connection_ids
string[]
Example:
description
string
Example:
input
object
output
object

Response

connection_ids
string[]
Example:
created_at
string
Example:
description
string
Example:
id
string<uuid>
Example:
input
object
name
string
Example:
output
object
updated_at
string
Example: