{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-bulk-update-user-response-schema.json",
  "title": "BulkUpdateUserResponse",
  "description": "Response for bulk user update operations",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-internal-user-management-api-openapi.yml#/components/schemas/BulkUpdateUserResponse",
  "properties": {
    "results": {
      "items": {
        "$ref": "#/$defs/UserUpdateResult"
      },
      "type": "array",
      "title": "Results"
    },
    "total_requested": {
      "type": "integer",
      "title": "Total Requested"
    },
    "successful_updates": {
      "type": "integer",
      "title": "Successful Updates"
    },
    "failed_updates": {
      "type": "integer",
      "title": "Failed Updates"
    }
  },
  "type": "object",
  "required": [
    "results",
    "total_requested",
    "successful_updates",
    "failed_updates"
  ],
  "$defs": {
    "UserUpdateResult": {
      "properties": {
        "user_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "User Id"
        },
        "user_email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "User Email"
        },
        "success": {
          "type": "boolean",
          "title": "Success"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error"
        },
        "updated_user": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated User"
        }
      },
      "type": "object",
      "required": [
        "success"
      ],
      "title": "UserUpdateResult",
      "description": "Result of a single user update operation"
    }
  }
}