{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-communication-services/json-schema/microsoft-azure-communication-services-email-send-result-schema.json",
  "title": "EmailSendResult",
  "description": "Status of the long running operation",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-communication-services-email-api-openapi.yml#/components/schemas/EmailSendResult",
  "required": [
    "id",
    "status"
  ],
  "type": "object",
  "properties": {
    "id": {
      "description": "The unique id of the operation. Use a UUID.",
      "type": "string"
    },
    "status": {
      "description": "Status of operation.",
      "enum": [
        "NotStarted",
        "Running",
        "Succeeded",
        "Failed",
        "Canceled"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "EmailSendStatus",
        "modelAsString": true
      }
    },
    "error": {
      "description": "Error details when status is a non-success terminal state.",
      "$ref": "../../../../../common-types/data-plane/v1/types.json#/components/schemas/ErrorDetail"
    }
  }
}