The Widget object

A widget is a container that can be used to display customized data coming from integrations at the right-hand sidebar of the ticket or user page.
It contains a list of fields and values that come from integrations.

Widget properties

int32

ID of the widget.

string

The context to display this widget in.

ISO 8601 datetime

When the widget was created.

ISO 8601 datetime

When the widget was deactivated.

int32

ID of the integration that the widget's data is attached to. Only used for widgets attached to HTTP integrations. Widgets are the same for all Shopify integrations, but each HTTP integration needs a specific widget.

int32

Order of precedence of the widget. Widgets with lower order are shown first.

object

Template to render the data of the widget.

string

Type of data the widget is attached to.

ISO 8601 datetime

When the widget was updated.

string

URI of the widget.

Widget example object

{
  "id": 123,
  "context": "ticket",
  "created_datetime": "2020-12-01T13:00:00.123456",
  "deactivated_datetime": "2020-12-03T13:00:00.123456",
  "order": 3,
  "template": {
    "type": "wrapper",
    "widgets": [
      {
        "path": "account_info",
        "type": "card",
        "title": "Account Info",
        "widgets": [
          {
            "path": "account_id",
            "type": "text",
            "title": "Account ID"
          }
        ]
      }
    ]
  },
  "type": "http",
  "updated_datetime": "2020-12-02T13:00:00.123456",
  "uri": "/api/widgets/123/"
}