{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-quicksight/json-schema/amazon-quicksight-update-dashboard-permissions-request-schema.json",
  "title": "UpdateDashboardPermissionsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-quicksight-permissions-api-openapi.yml#/components/schemas/UpdateDashboardPermissionsRequest",
  "type": "object",
  "properties": {
    "AwsAccountId": {
      "type": "string",
      "description": "The ID of the Amazon Web Services account that contains the dashboard whose permissions you're updating."
    },
    "DashboardId": {
      "type": "string",
      "description": "The ID for the dashboard."
    },
    "GrantPermissions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResourcePermission"
      },
      "description": "The permissions that you want to grant on this resource."
    },
    "RevokePermissions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResourcePermission"
      },
      "description": "The permissions that you want to revoke from this resource."
    },
    "GrantLinkPermissions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResourcePermission"
      },
      "description": "Grants link permissions to all users in a defined namespace."
    },
    "RevokeLinkPermissions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResourcePermission"
      },
      "description": "Revokes link permissions from all users in a defined namespace."
    }
  },
  "required": [
    "AwsAccountId",
    "DashboardId"
  ],
  "$defs": {
    "ResourcePermission": {
      "type": "object",
      "properties": {
        "Principal": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the principal. This can be one of the following: The ARN of an Quick Sight user or group associated with a data source or dataset. (This is common.) The ARN of an Quick Sight user, group, or namespace associated with an analysis, dashboard, template, or theme. Namespace sharing is not supported for action connectors. (This is common.) The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a Quick Sight ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. Account root sharing is not supported for "
        },
        "Actions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IAM action to grant or revoke permissions on."
        }
      },
      "required": [
        "Principal",
        "Actions"
      ]
    }
  }
}