Content Blocks

Search for content blocks

Changed on

This endpoint allows you to search for content blocks. You can filter by block type, lead organisation, and keyword.

get/blocks

Request

  • Base URL
    https://content-block-manager.publishing.service.gov.uk/api
  • URL
    https://content-block-manager.publishing.service.gov.uk/api/blocks
  • Auth
    none declared

Query parameters

block_typestring

The type of block to filter by. This is a case-insensitive match against the block type defined in the document associated with the content block.

lead_organisation_idstring

The Content ID of the lead organisation to filter by.

keywordstring

The keyword to filter by. Searches against the title and the details hash of the content block.

Response

blocks found

Changes

    • warning

      deleted the query request parameter page

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      endpoint added