Skip to main content

update_content_standards

Update an existing content standards configuration. Creates a new version. Response time: < 1s

Request

Schema: update-content-standards-request.json
ParameterTypeRequiredDescription
standards_idstringYesID of the standards configuration to update
scopeobjectNoUpdated scope
policystringNoUpdated policy prompt
calibration_exemplarsobjectNoUpdated training exemplars (pass/fail)

Example Request

{
  "$schema": "/schemas/content-standards/update-content-standards-request.json",
  "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

Success Response

{
  "$schema": "/schemas/content-standards/update-content-standards-response.json",
  "standards_id": "nike_emea_safety"
}

Error Response

{
  "$schema": "/schemas/content-standards/update-content-standards-response.json",
  "errors": [
    {
      "code": "STANDARDS_NOT_FOUND",
      "message": "No standards found with ID 'invalid_id'"
    }
  ]
}