Menu
Create Widget
Create a widget
POST
/api/widgetsUse it in a workflow
- Add a step and choose the Gorgias connector.
- Pick the Create Widget action (under Widgets).
- Fill in the fields below, then reference the result from later steps as
{{createWidget.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"template": {
"type": "wrapper",
"widgets": [
{
"path": "account_info",
"type": "card",
"title": "account info",
"widgets": [
{
"path": "account_id",
"type": "text",
"title": "account id"
}
]
}
]
},
"type": "http",
"context": "ticket",
"deactivated_datetime": "2020-12-03T13:00:00.123456",
"integration_id": 0,
"app_id": "60b9f144096cf92533e0a14d",
"order": 3
}
Response
Returns 201 with an object. Read it in later steps with {{createWidget.response.data.<field>}}.
{
"id": 123,
"context": "ticket",
"created_datetime": "2020-12-01T13:00:00.123456",
"deactivated_datetime": "2020-12-03T13:00:00.123456",
"integration_id": 0,
"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",
"uri": "string"
}
Need more? See the Gorgias guide for connection setup and behaviour shared by every action.
Was this page helpful?