Skip to main content
PUT
Update a guardrail

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

guardrailId
string
required

Guardrail UUID or slug to update

Body

application/json
name
string

Updated name of the guardrail

checks
object[]

Updated array of guardrail checks

Minimum array length: 1
actions
object

Actions to take when guardrail checks fail or pass

Response

Guardrail updated successfully

id
string
required

Unique identifier of the updated guardrail

slug
string
required

URL-friendly slug for the guardrail

version_id
string

New version identifier after update

Last modified on February 17, 2026