🎉 Portkey raises Series A - $15M to build AI that never breaks  Read announcement →
curl --request PUT \
--url https://api.portkey.ai/v1/guardrails/{guardrailId} \
--header 'Content-Type: application/json' \
--header 'x-portkey-api-key: <api-key>' \
--data '
{
"name": "<string>",
"checks": [
{
"id": "default.jwt",
"parameters": {
"jwksUri": "<string>",
"headerKey": "<string>",
"cacheMaxAge": 86400,
"clockTolerance": 5,
"maxTokenAge": "1d",
"algorithms": [
"RS256"
]
},
"name": "<string>",
"is_enabled": true
}
]
}
'{
"id": "<string>",
"slug": "<string>",
"version_id": "<string>"
}Updates an existing guardrail’s name, checks, or actions
curl --request PUT \
--url https://api.portkey.ai/v1/guardrails/{guardrailId} \
--header 'Content-Type: application/json' \
--header 'x-portkey-api-key: <api-key>' \
--data '
{
"name": "<string>",
"checks": [
{
"id": "default.jwt",
"parameters": {
"jwksUri": "<string>",
"headerKey": "<string>",
"cacheMaxAge": 86400,
"clockTolerance": 5,
"maxTokenAge": "1d",
"algorithms": [
"RS256"
]
},
"name": "<string>",
"is_enabled": true
}
]
}
'{
"id": "<string>",
"slug": "<string>",
"version_id": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://portkey-docs-log-export-guide-1773064217.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Guardrail UUID or slug to update
Was this page helpful?