# command: kpi.add-features
Description: Add one or more features to active KPI cards. Web only.

Inputs: `( @vertigis.api-docs.Features FeatureSet|FeatureList|FeatureStream | T_13 | ( @vertigis.arcgis-extensions.data.Feature.FeatureProperties | T_13 )[] | Results | UpdateKpiCardFeaturesArgs )`

@vertigis.arcgis-extensions.data.Feature.FeatureProperties properties:
```json
{
  "attributes": {
    "anyOf": [
      {},
      {
        "$ref": "Map"
      }
    ],
    "description": "The feature's attributes, keyed by field name."
  },
  "failureMode": {
    "description": "See {@link support /InitializableBase!InitializableBase.failureMode}."
  },
  "geometry": {
    "anyOf": [
      {
        "$ref": "#/definitions/@arcgis.core.geometry.Extent.Extent"
      },
      {
        "$ref": "#/definitions/@arcgis.core.geometry.Multipoint.Multipoint"
      },
      {
        "$ref": "#/definitions/@arcgis.core.geometry.Point.Point"
      },
      {
        "$ref": "T_6"
      },
      {
        "$ref": "#/definitions/@arcgis.core.geometry.Polyline.Polyline"
      },
      {
        "$ref": "#/definitions/@arcgis.core.geometry.Mesh.Mesh"
      },
      {
        "$ref": "#/definitions/esri.rest-api.GeometryJson.PointJson"
      },
      {
        "$ref": "#/definitions/esri.rest-api.GeometryJson.MultipointJson"
      },
      {
        "$ref": "#/definitions/esri.rest-api.GeometryJson.PolylineJson"
      },
      {
        "$ref": "#/definitions/esri.rest-api.GeometryJson.PolygonJson"
      },
      {
        "$ref": "#/definitions/esri.rest-api.GeometryJson.ExtentJson"
      }
    ],
    "description": "The feature's geometry."
  },
  "id": {
    "description": "The unique ID to assign to the entity. If not specified, one will be generated.",
    "type": "string"
  },
  "schema": {
    "description": "Metadata about the feature, such as fields, domains, geometry type, etc."
  },
  "settings": {
    "description": "Settings for this feature."
  },
  "source": {
    "description": "The source of the feature."
  }
}
```

Results properties:
```json
{
  "features": {
    "description": "Features to use for the command/operation."
  },
  "maps": {
    "description": "Map(s) to use for the command/operation."
  }
}
```

UpdateKpiCardFeaturesArgs properties:
```json
{
  "features": {
    "description": "Features to use for the command/operation."
  },
  "kpiCard": {
    "description": "The KPI card to update, referenced by KPI card model or its ID.",
    "isRequired": "true"
  }
}
```

---
# command: kpi.clear
Description: Clear features from active KPI cards. Web only.

Inputs: `( Model | string )`

Model properties:
```json
{
  "id": {
    "description": "The unique ID for this entity.",
    "type": "string",
    "isRequired": "true"
  },
  "itemType": {
    "description": "The item type for this entity when it participates in an App.",
    "type": "string",
    "isRequired": "true"
  }
}
```

---
# command: kpi.display
Description: Displays the KPI card and updates it with provided features. Web only.

Inputs: `( @vertigis.api-docs.Features FeatureSet|FeatureList|FeatureStream | T_13 | ( @vertigis.arcgis-extensions.data.Feature.FeatureProperties | T_13 )[] | Results | UpdateKpiCardFeaturesArgs )`

@vertigis.arcgis-extensions.data.Feature.FeatureProperties properties:
```json
{
  "attributes": {
    "anyOf": [
      {},
      {
        "$ref": "Map"
      }
    ],
    "description": "The feature's attributes, keyed by field name."
  },
  "failureMode": {
    "description": "See {@link support /InitializableBase!InitializableBase.failureMode}."
  },
  "geometry": {
    "anyOf": [
      {
        "$ref": "#/definitions/@arcgis.core.geometry.Extent.Extent"
      },
      {
        "$ref": "#/definitions/@arcgis.core.geometry.Multipoint.Multipoint"
      },
      {
        "$ref": "#/definitions/@arcgis.core.geometry.Point.Point"
      },
      {
        "$ref": "T_6"
      },
      {
        "$ref": "#/definitions/@arcgis.core.geometry.Polyline.Polyline"
      },
      {
        "$ref": "#/definitions/@arcgis.core.geometry.Mesh.Mesh"
      },
      {
        "$ref": "#/definitions/esri.rest-api.GeometryJson.PointJson"
      },
      {
        "$ref": "#/definitions/esri.rest-api.GeometryJson.MultipointJson"
      },
      {
        "$ref": "#/definitions/esri.rest-api.GeometryJson.PolylineJson"
      },
      {
        "$ref": "#/definitions/esri.rest-api.GeometryJson.PolygonJson"
      },
      {
        "$ref": "#/definitions/esri.rest-api.GeometryJson.ExtentJson"
      }
    ],
    "description": "The feature's geometry."
  },
  "id": {
    "description": "The unique ID to assign to the entity. If not specified, one will be generated.",
    "type": "string"
  },
  "schema": {
    "description": "Metadata about the feature, such as fields, domains, geometry type, etc."
  },
  "settings": {
    "description": "Settings for this feature."
  },
  "source": {
    "description": "The source of the feature."
  }
}
```

Results properties:
```json
{
  "features": {
    "description": "Features to use for the command/operation."
  },
  "maps": {
    "description": "Map(s) to use for the command/operation."
  }
}
```

UpdateKpiCardFeaturesArgs properties:
```json
{
  "features": {
    "description": "Features to use for the command/operation."
  },
  "kpiCard": {
    "description": "The KPI card to update, referenced by KPI card model or its ID.",
    "isRequired": "true"
  }
}
```

---
# command: kpi.remove-features
Description: Remove one or more features from active KPI cards. Web only.

Inputs: `( @vertigis.api-docs.Features FeatureSet|FeatureList|FeatureStream | T_13 | ( @vertigis.arcgis-extensions.data.Feature.FeatureProperties | T_13 )[] | Results | UpdateKpiCardFeaturesArgs )`

@vertigis.arcgis-extensions.data.Feature.FeatureProperties properties:
```json
{
  "attributes": {
    "anyOf": [
      {},
      {
        "$ref": "Map"
      }
    ],
    "description": "The feature's attributes, keyed by field name."
  },
  "failureMode": {
    "description": "See {@link support /InitializableBase!InitializableBase.failureMode}."
  },
  "geometry": {
    "anyOf": [
      {
        "$ref": "#/definitions/@arcgis.core.geometry.Extent.Extent"
      },
      {
        "$ref": "#/definitions/@arcgis.core.geometry.Multipoint.Multipoint"
      },
      {
        "$ref": "#/definitions/@arcgis.core.geometry.Point.Point"
      },
      {
        "$ref": "T_6"
      },
      {
        "$ref": "#/definitions/@arcgis.core.geometry.Polyline.Polyline"
      },
      {
        "$ref": "#/definitions/@arcgis.core.geometry.Mesh.Mesh"
      },
      {
        "$ref": "#/definitions/esri.rest-api.GeometryJson.PointJson"
      },
      {
        "$ref": "#/definitions/esri.rest-api.GeometryJson.MultipointJson"
      },
      {
        "$ref": "#/definitions/esri.rest-api.GeometryJson.PolylineJson"
      },
      {
        "$ref": "#/definitions/esri.rest-api.GeometryJson.PolygonJson"
      },
      {
        "$ref": "#/definitions/esri.rest-api.GeometryJson.ExtentJson"
      }
    ],
    "description": "The feature's geometry."
  },
  "id": {
    "description": "The unique ID to assign to the entity. If not specified, one will be generated.",
    "type": "string"
  },
  "schema": {
    "description": "Metadata about the feature, such as fields, domains, geometry type, etc."
  },
  "settings": {
    "description": "Settings for this feature."
  },
  "source": {
    "description": "The source of the feature."
  }
}
```

Results properties:
```json
{
  "features": {
    "description": "Features to use for the command/operation."
  },
  "maps": {
    "description": "Map(s) to use for the command/operation."
  }
}
```

UpdateKpiCardFeaturesArgs properties:
```json
{
  "features": {
    "description": "Features to use for the command/operation."
  },
  "kpiCard": {
    "description": "The KPI card to update, referenced by KPI card model or its ID.",
    "isRequired": "true"
  }
}
```

---
# command: kpi.update-definition
Description: Updates the definition of a KPI Card. Web only.

Inputs: `UpdateKpiCardDefinitionArgs`

UpdateKpiCardDefinitionArgs properties:
```json
{
  "kpiCard": {
    "description": "The KPI card model or its ID.",
    "isRequired": "true"
  },
  "referenceExpression": {
    "description": "The stringified Arcade script used to calculate the 'reference' token of the KPI card.",
    "type": "string"
  },
  "valueExpression": {
    "description": "The stringified Arcade script used to calculate the 'value' token of the KPI Card.",
    "type": "string"
  }
}
```

---
