# Relevant Cardscript iconAdaptiveCard

Cardscript

Root element in an Adaptive Card.

# Example

{
  "type": "AdaptiveCard",
  "body": [],
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.0"
}

# Required properties

# type

Must be "AdaptiveCard".

  • Type: string
  • Values:
    • AdaptiveCard

# Optional properties

# actions

  • Type: array

# body

  • Type: array

# selectAction

An Action that will be invoked when the card is tapped or selected. Action.ShowCard is not supported.

  • Type: object

# JSON Schema

{
  "additionalProperties": true,
  "type": "AdaptiveCard",
  "description": "Root element in an Adaptive Card.",
  "properties": {
    "type": {
      "type": "string",
      "description": "Must be `\"AdaptiveCard\"`.",
      "enum": [
        "AdaptiveCard"
      ]
    },
    "actions": {
      "description": "The Actions to show in the card's action bar.",
      "$ref": "#/definitions/Actions"
    },
    "body": {
      "description": "The card elements to show in the primary card region.",
      "$ref": "#/definitions/CardElements"
    },
    "selectAction": {
      "description": "An Action that will be invoked when the card is tapped or selected. `Action.ShowCard` is not supported.",
      "type": "object",
      "oneOf": [
        {
          "$ref": "#/definitions/Action.Submit"
        },
        {
          "$ref": "#/definitions/Action.OpenUrl"
        }
      ]
    }
  },
  "required": [
    "type"
  ],
  "typeSafe": "adaptive-card",
  "example": "FIXME!",
  "propertySummary": [
    {
      "name": "type",
      "type": "string",
      "required": "Required",
      "text": "Must be `\"AdaptiveCard\"`."
    },
    {
      "name": "actions",
      "required": "Optional",
      "text": "The Actions to show in the card's action bar."
    },
    {
      "name": "body",
      "required": "Optional",
      "text": "The card elements to show in the primary card region."
    },
    {
      "name": "selectAction",
      "type": "object",
      "required": "Optional",
      "text": "An Action that will be invoked when the card is tapped or selected. `Action.ShowCard` is not supported."
    }
  ]
}
Last Updated: 9/10/2023, 11:30:14 AM