Docs
Content API
Widget

Widget

Create a Widget

POST /content/widgets

Request

Creates a Widget.

Note: There is a limit of 100,000 widgets per store and 150 widgets per page. For more information, see Store Limits.

Authentication

  • X-Auth-Token in header
    required

Parameters

  • store_hash in path - string

Body

object | application/json
  • name
    string
    required

    User friendly name.

  • description
    string

    The user-friendly description.

  • widget_configuration
    object

    The JSON data that populates the template.

  • widget_template_uuid
    string
    required

    The widget template UUID.

  • channel_id
    integer

    The ID of the channel on which to create this widget. Defaults to the first channel created on the store.

example

Response

Body

object | application/json
  • data

  • meta
    object

    Response metadata.

response

Get All Widgets

GET /content/widgets

Request

Returns a list of Widgets. Optional parameters can be passed in.

Authentication

  • X-Auth-Token in header
    required

Parameters

  • store_hash in path - string

example

Response

Body

object | application/json
  • data
    array[]

  • meta
    object

    Data about the response, including pagination and collection totals.

response

Get a Widget

GET /content/widgets/{uuid}

Request

Returns a single Widget.

Authentication

  • X-Auth-Token in header
    required

Parameters

  • store_hash in path - string

example

Response

Body

object | application/json
  • data

  • meta
    object

    Response metadata.

response

Update a Widget

PUT /content/widgets/{uuid}

Request

Updates a Widget.

Authentication

  • X-Auth-Token in header
    required

Parameters

  • store_hash in path - string

Body

application/json

example

Response

Body

object | application/json
  • data

  • meta
    object

    Response metadata.

response

Delete a Widget

DELETE /content/widgets/{uuid}

Request

Deletes a Widget.

Authentication

  • X-Auth-Token in header
    required

Parameters

  • store_hash in path - string

example

Response

An empty response.

Did you find what you were looking for?