Skip to main content
PATCH
تحديث حاجز الحماية
يتطلب guardrails:write. تحتفظ الحقول المحذوفة بقيمها الحالية.

التفويضات

Authorization
string
header
مطلوب

المصادقة باستخدام رمز Bearer

معلمات المسار

id
string<uuid>
مطلوب

معرّف حاجز الحماية.

الجسم

application/json
name
string
Required string length: 1 - 200
description
string | null
enabled
boolean
privacyEnablePaidMayTrain
boolean | null
privacyEnableFreeMayTrain
boolean | null
privacyEnableFreeMayPublishPrompts
boolean | null
privacyEnableInputOutputLogging
boolean | null
privacyZdrOnly
boolean | null
providerRestrictionMode
enum<string>
الخيارات المتاحة:
none,
allowlist,
blocklist
providerRestrictionProviderIds
string[]
providerRestrictionEnforceAllowed
boolean
modelRestrictionMode
enum<string>
الخيارات المتاحة:
none,
allowlist,
blocklist
allowedApiModelIds
string[]
promptInjectionEnabled
boolean
promptInjectionAction
enum<string>
الخيارات المتاحة:
flag,
block
sensitiveInfoEnabled
boolean
sensitiveInfoDefaultAction
enum<string>
الخيارات المتاحة:
flag,
redact,
block
sensitiveInfoRules
object[]
budgets
object

الاستجابة

تم تحديث حاجز الحماية

data
object
مطلوب
آخر تعديل في ٢ أكتوبر ٢٠٢٦