Skip to main content
POST
إنشاء حاجز حماية
يتطلب guardrails:write. يمكن أن تجمع السياسات بين الخصوصية وقيود المزوّد أو النموذج وضوابط المحتوى وميزانيات الطلبات أو التكلفة.

التفويضات

Authorization
string
header
مطلوب

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

الجسم

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
مطلوب
آخر تعديل في ٢ أكتوبر ٢٠٢٦