{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-purview/json-schema/microsoft-purview-default-account-payload-schema.json",
  "title": "DefaultAccountPayload",
  "description": "Payload to get and set the default account in the given scope",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-purview-defaultaccount-api-openapi.yml#/components/schemas/DefaultAccountPayload",
  "type": "object",
  "properties": {
    "accountName": {
      "description": "The name of the account that is set as the default.",
      "type": "string"
    },
    "resourceGroupName": {
      "description": "The resource group name of the account that is set as the default.",
      "type": "string"
    },
    "scope": {
      "description": "The scope object ID. For example, sub ID or tenant ID.",
      "type": "string"
    },
    "scopeTenantId": {
      "description": "The scope tenant in which the default account is set.",
      "type": "string"
    },
    "scopeType": {
      "description": "The scope where the default account is set.",
      "enum": [
        "Tenant",
        "Subscription"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "scopeType",
        "modelAsString": true
      }
    },
    "subscriptionId": {
      "description": "The subscription ID of the account that is set as the default.",
      "type": "string"
    }
  }
}