PUT
/
guardrails
/
{id}
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
The request body resource

The body is of type object.

Response

200
application/json
OK

The response is of type object.