{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "/schemas/3.1.0-rc.4/content-standards/update-content-standards-response.json",
  "title": "Update Content Standards Response",
  "description": "Response from updating a content standards configuration",
  "allOf": [
    {
      "$ref": "/schemas/3.1.0-rc.4/core/version-envelope.json"
    },
    {
      "$ref": "/schemas/3.1.0-rc.4/core/protocol-envelope.json"
    }
  ],
  "oneOf": [
    {
      "title": "UpdateContentStandardsSuccess",
      "type": "object",
      "properties": {
        "success": {
          "type": "boolean",
          "const": true,
          "description": "Indicates the update was applied successfully"
        },
        "standards_id": {
          "type": "string",
          "description": "ID of the updated standards configuration"
        },
        "context": {
          "$ref": "/schemas/3.1.0-rc.4/core/context.json"
        },
        "ext": {
          "$ref": "/schemas/3.1.0-rc.4/core/ext.json"
        }
      },
      "required": [
        "success",
        "standards_id"
      ],
      "additionalProperties": true
    },
    {
      "title": "UpdateContentStandardsError",
      "type": "object",
      "properties": {
        "success": {
          "type": "boolean",
          "const": false,
          "description": "Indicates the update failed"
        },
        "errors": {
          "type": "array",
          "items": {
            "$ref": "/schemas/3.1.0-rc.4/core/error.json"
          },
          "description": "Errors that occurred during the update",
          "minItems": 1
        },
        "conflicting_standards_id": {
          "type": "string",
          "description": "If scope change conflicts with another configuration, the ID of the conflicting standards"
        },
        "context": {
          "$ref": "/schemas/3.1.0-rc.4/core/context.json"
        },
        "ext": {
          "$ref": "/schemas/3.1.0-rc.4/core/ext.json"
        }
      },
      "required": [
        "success",
        "errors"
      ],
      "additionalProperties": true
    }
  ],
  "properties": {}
}
