Create a ThinViz card from components

Changed on
post/api/mpp/v1/thinviz/create

Request

  • Base URL
    https://tako.com
  • URL
    https://tako.com/api/mpp/v1/thinviz/create
  • Auth
    none declared

Request body

object required

Structured chart component definition. See /.well-known/thinviz-schema.json for the full schema.

Response

The created card.

card_idstring nullable

Public ID of the created card.

titlestring nullable

Card title.

descriptionstring nullable

Card description.

webpage_urlstring nullable

Hosted page URL for the card.

image_urlstring nullable

Static preview image URL for the card.

embed_urlstring nullable

Embeddable URL for the card.

card_typestring nullable

The card's chart type (for example, 'bar').

visualization_dataobject nullable

Inline chart config + data for rendering the card.

embed_mode'post' | 'postmessage' nullable

How Tako delivers the embed: 'postmessage' for postMessage embeds, and 'post' otherwise.

Example response

{
  "visualization_data": {
    "data": [
      {
        "x": "2013",
        "y": 10000
      }
    ],
    "viz_config": {
      "title": "Revenue"
    }
  }
}

Changes

    • info

      added the non-success response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/problem+json for the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status