Widgets API

Widgets

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.

Properties

FieldTypePOSTPUTDefinition

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

style properties

Widget style:

config properties

Back to Top

GET widgets

Retrieves all widget available in the Stack.

Resource URL

https://api.stackla.com/api/widgets

Resource Details

Rate limited: Yes

Access scope: User

Request Parameters

No additional request parameters are available.

Back to Top

POST widgets

Creates a new widget in the Stack.

Resource URL

https://api.stackla.com/api/widgets

Resource Details

Rate limited: Yes

Access scope: User

Request Parameters

No additional request parameters are available.

Back to Top

GET widgets/:widgetId

Retrieves a specific widget available in the Stack by its ID.

Resource URL

https://api.stackla.com/api/widgets/:widgetId

Resource Details

Rate limited: Yes

Access scope: User

Request Parameters

NameMandatoryRequest typeDescription

widgetId

Yes

endpoint

ID of the widget

Back to Top

PUT widgets/:widgetId

Updates a specific widget available in the Stack by its ID.

Resource URL

https://api.stackla.com/api/widgets/:widgetId

Resource Details

Rate limited: Yes

Access scope: User

Request Parameters

NameMandatoryRequest typeDescription

widgetId

Yes

endpoint

ID of the widget

Back to Top

DELETE widgets/:widgetId

Deletes a specific widget available in the Stack by its ID.

Resource URL

https://api.stackla.com/api/widgets/:widgetId

Resource Details

Rate limited: Yes

Access scope: User

Request Parameters

NameMandatoryRequest typeDescription

widgetId

Yes

endpoint

ID of the widget

Back to Top