{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/navision/json-schema/navision-environment-operation-schema.json",
  "title": "EnvironmentOperation",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/navision-app-management-api-openapi.yml#/components/schemas/EnvironmentOperation",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Operation ID used for tracking"
    },
    "type": {
      "type": "string",
      "description": "Type of operation",
      "enum": [
        "create",
        "copy",
        "delete",
        "softDelete",
        "recover",
        "environmentRename",
        "pitRestore",
        "environmentAppInstall",
        "environmentAppUninstall",
        "environmentAppUpdate",
        "environmentAppHotfix",
        "modify",
        "update",
        "restart",
        "moveToAnotherAadTenant"
      ]
    },
    "status": {
      "type": "string",
      "description": "Status of the operation",
      "enum": [
        "Queued",
        "Scheduled",
        "Running",
        "Succeeded",
        "Failed",
        "Canceled",
        "Skipped"
      ]
    },
    "aadTenantId": {
      "type": "string",
      "format": "uuid",
      "description": "Microsoft Entra tenant ID"
    },
    "createdOn": {
      "type": "string",
      "format": "date-time",
      "description": "When the operation was created"
    },
    "startedOn": {
      "type": "string",
      "format": "date-time",
      "description": "When the operation started executing"
    },
    "completedOn": {
      "type": "string",
      "format": "date-time",
      "description": "When the operation completed"
    },
    "createdBy": {
      "type": "string",
      "description": "Who created the operation"
    },
    "errorMessage": {
      "type": "string",
      "description": "Error message for failed operations"
    },
    "parameters": {
      "type": "object",
      "description": "Operation-specific parameters",
      "additionalProperties": true
    },
    "environmentName": {
      "type": "string",
      "description": "Name of the affected environment"
    },
    "environmentType": {
      "type": "string",
      "description": "Type of the affected environment"
    },
    "productFamily": {
      "type": "string",
      "description": "Product family of the affected environment"
    }
  }
}