{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-email-domain-mailing-list-schema.json",
  "title": "email.domain.MailingList",
  "description": "Mailing List",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-email-domain-openapi.yml#/components/schemas/email.domain.MailingList",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Id of mailing list",
      "readOnly": true
    },
    "language": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.DomainMlLanguageEnum"
        }
      ],
      "description": "Language of mailing list",
      "nullable": true
    },
    "name": {
      "type": "string",
      "description": "Name of mailing list",
      "readOnly": true
    },
    "nbSubscribers": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Subscribers number of mailing list",
      "readOnly": true
    },
    "nbSubscribersUpdateDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Last update subscribers",
      "format": "date-time",
      "readOnly": true
    },
    "options": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.DomainMlOptionsStruct"
        }
      ],
      "description": "Options of mailing list",
      "readOnly": true
    },
    "ownerEmail": {
      "type": "string",
      "description": "Owner email of mailing list"
    },
    "replyTo": {
      "type": "string",
      "description": "Email to reply of mailing list"
    }
  },
  "$defs": {
    "domain.DomainMlLanguageEnum": {
      "type": "string",
      "description": "Possible values for mailing list language",
      "enum": [
        "de",
        "en",
        "es",
        "fr",
        "it",
        "nl",
        "pl",
        "pt"
      ]
    },
    "domain.DomainMlOptionsStruct": {
      "type": "object",
      "description": "Structure of imapCopy",
      "properties": {
        "moderatorMessage": {
          "type": "boolean",
          "description": "If true, messages are moderate"
        },
        "subscribeByModerator": {
          "type": "boolean",
          "description": "If true, enabled moderation for subscribe"
        },
        "usersPostOnly": {
          "type": "boolean",
          "description": "If true, just user can post"
        }
      }
    }
  }
}