• Pages
  • /
  • Dealers
  • /
  • Data Depot
  • /
  • Version 4
  • /
  • API
  • /
  • Services
  • /
  • Blocks

Blocks

Blocks are essentially a chunk of HTML that we attach to Products.

We use Blocks to display blobs of HTML markup on our websites for things like detailed breakdowns, tables, showcasing certain characteristics, and highlighting aspects of a Product and such. Blocks can have Images associated with them, and the references to those Images are typically also embedded within the HTML data itself.

The data property is a string of markup that is commonly included when displaying product detail on the web.

Example requests

Collection

https://api.wps-inc.com/blocks

Entity

https://api.wps-inc.com/blocks/1

...or send multiple ids separated by a comma(,)

https://api.wps-inc.com/blocks/1,2,3,4,5

Associated Images

https://api.wps-inc.com/blocks/27/images

Associated Products

https://api.wps-inc.com/blocks/27/products