{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-playwright/json-schema/microsoft-playwright-account-update-schema.json",
  "title": "AccountUpdate",
  "description": "The type used for update operations of the Account.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-playwright-accounts-api-openapi.yml#/components/schemas/AccountUpdate",
  "type": "object",
  "properties": {
    "tags": {
      "type": "object",
      "description": "Resource tags.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "properties": {
      "$ref": "#/$defs/AccountUpdateProperties",
      "description": "The resource-specific properties for this resource.",
      "x-ms-client-flatten": true
    }
  },
  "$defs": {
    "AccountUpdateProperties": {
      "type": "object",
      "description": "The updatable properties of the Account.",
      "properties": {
        "regionalAffinity": {
          "$ref": "#/$defs/EnablementStatus",
          "description": "This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created."
        },
        "scalableExecution": {
          "$ref": "#/$defs/EnablementStatus",
          "description": "When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations."
        },
        "reporting": {
          "$ref": "#/$defs/EnablementStatus",
          "description": "When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting."
        },
        "localAuth": {
          "$ref": "#/$defs/EnablementStatus",
          "description": "When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations."
        }
      }
    },
    "EnablementStatus": {
      "type": "string",
      "description": "The enablement status of a feature.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "EnablementStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "The feature is Enabled."
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "The feature is Disabled."
          }
        ]
      }
    }
  }
}