Skip to main content

update_content_standards

Update an existing content standards configuration. Creates a new version. 既存のコンテンツスタンダード設定を更新し、新しいバージョンを作成します。 レスポンスタイム: < 1s

Request

Schema: update-content-standards-request.json
ParameterTypeRequiredDescription
standards_idstringYes更新対象スタンダードの ID
scopeobjectNoスコープの更新
policystringNoポリシープロンプトの更新
calibration_exemplarsobjectNoキャリブレーション用の pass/fail 例の更新

リクエスト例

{
  "standards_id": "nike_emea_safety",
  "policy": "Sports and fitness content is ideal. Lifestyle content about health and wellness is good. Entertainment content is generally acceptable. Avoid violence, controversial politics, adult themes. Block hate speech and illegal activities.",
  "calibration_exemplars": {
    "pass": [
      { "type": "url", "value": "https://espn.com/nba/story/_/id/12345/lakers-win", "language": "en" },
      { "type": "url", "value": "https://healthline.com/fitness/cardio-workout", "language": "en" },
      { "type": "url", "value": "https://runnersworld.com/training/marathon-tips", "language": "en" }
    ],
    "fail": [
      { "type": "url", "value": "https://tabloid.example.com/celebrity-scandal", "language": "en" },
      { "type": "url", "value": "https://gambling.example.com/betting-guide", "language": "en" }
    ]
  }
}

Response

Schema: update-content-standards-response.json

成功レスポンス

{
  "standards_id": "nike_emea_safety"
}

エラーレスポンス

{
  "errors": [
    {
      "code": "STANDARDS_NOT_FOUND",
      "message": "No standards found with ID 'invalid_id'"
    }
  ]
}