Widgets API
Last updated
Last updated
Widgets refer to any touchpoint that can be embedded onto a digital property that is made up of either an "In-Line" or possibly also an "Expanded Tile" view. This endpoint allows you to create widgets and returns an embed code.
Field | Type | POST | PUT | Definition |
---|---|---|---|---|
style
propertiesWidget style:
config
propertiesRetrieves all widget available in the Stack.
https://api.stackla.com/api/widgets
Rate limited: Yes
Access scope: User
No additional request parameters are available.
Creates a new widget in the Stack.
https://api.stackla.com/api/widgets
Rate limited: Yes
Access scope: User
No additional request parameters are available.
Retrieves a specific widget available in the Stack by its ID.
https://api.stackla.com/api/widgets/:widgetId
Rate limited: Yes
Access scope: User
Updates a specific widget available in the Stack by its ID.
https://api.stackla.com/api/widgets/:widgetId
Rate limited: Yes
Access scope: User
Deletes a specific widget available in the Stack by its ID.
https://api.stackla.com/api/widgets/:widgetId
Rate limited: Yes
Access scope: User
Name | Mandatory | Request type | Description |
---|---|---|---|
Name | Mandatory | Request type | Description |
---|---|---|---|
Name | Mandatory | Request type | Description |
---|---|---|---|
id
integer
X
X
Widget ID
widget_type_id
integer
X
X
Widget type id
stack_id
integer
X
X
Widget stack Id
guid
string
X
X
Widget GUID
style
✔
✔
Widget style config
config
✔
✔
Widget config
filter_id
integer
✔
✔
Content filter for widget
enabled
boolean
✔
✔
Enabled widget
custom_css
string
✔
✔
Custom css for inline tile
lightbox_custom_css
string
✔
✔
Custom css for lightbox
custom_js
string
✔
✔
Custom javascript for inline tile
lightbox_custom_js
string
✔
✔
Custom javascript for lightbox
external_js
string
✔
✔
URL of external js to inject to parent page
embed_code
string
X
X
The widget embed code
gen
integer
X
X
Version of widget
style_name
string
X
X
created
string
X
X
ISO Date Time string
modified
string
X
X
ISO Date Time string
created_at
timestamp
X
X
Moderationview's creation time
updated_at
timestamp
X
X
Moderationview's modification time
widgetId
Yes
endpoint
ID of the widget
widgetId
Yes
endpoint
ID of the widget
widgetId
Yes
endpoint
ID of the widget