v1
latestOpenAPI 3.1.02026-07-24111290748.0 KBWidgets
Create a widget
post/api/widgets
Request body
Example request
{
"context": "ticket",
"deactivated_datetime": "2020-12-03T13:00:00.123456",
"app_id": "60b9f144096cf92533e0a14d",
"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"
}Response
The created widget.
Example response
{
"id": 123,
"context": "ticket",
"created_datetime": "2020-12-01T13:00:00.123456",
"deactivated_datetime": "2020-12-03T13:00:00.123456",
"app_id": "60b9f144096cf92533e0a14d",
"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"
}