{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-legal-hold-request-schema.json",
  "title": "LegalHoldRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/miro-legal-holds-api-openapi.yml#/components/schemas/LegalHoldRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the legal hold."
    },
    "description": {
      "type": "string",
      "description": "The description of the legal hold."
    },
    "scope": {
      "$ref": "#/$defs/LegalHoldRequestScope"
    }
  },
  "required": [
    "name",
    "scope"
  ],
  "$defs": {
    "LegalHoldRequestScope": {
      "description": "The legal hold scope determines the criteria used to put content items under hold. The variants of this field might get extended in the future, although the most common use case is to put users under hold. Currently only the `users` scope is supported. However, the parsing of this field must ignore unexpected variants. The request must always include a list of all users to be placed under hold, whether it's for a new legal hold or an update to an existing one. You can have up to 200 users per legal hold, including users added in legal hold updates.",
      "oneOf": [
        {
          "$ref": "#/$defs/LegalHoldRequestScopeUsers"
        }
      ]
    },
    "LegalHoldRequestScopeUsers": {
      "title": "Users",
      "type": "object",
      "properties": {
        "users": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "email": {
                "type": "string",
                "description": "Email of the user"
              }
            },
            "required": [
              "email"
            ]
          }
        }
      },
      "required": [
        "user"
      ]
    }
  }
}