Showcase: Supressing Content via API
Administrators can now choose to hide content from their sites' Showcase page.
Administrators can use the API endpoints to hide reports from the Showcase page.
This option offers flexibility when choosing which content is visible on the Showcase page.
🔔Note: This method is only available for the Showcase page. Please contact support via support@contentcatalyst.com to enable this feature.


🔔See: API: Application Programming Interfaces article to familiarise yourself with API's in Content Catalyst.
Viewing the SuppressFromShowcase Field
The 'suppressFromShowcase' field can be found by using the API endpoint.
GET /libaries/reports/products{productCode}
Add the report ID in the ProductCode parameter.
Set the 'includeExtendedMetadata' option to true using the dropdown menu.

The suppressFromShowcase field will appear in the extracted metadata Response body.

By default, this is set to 'false', meaning all content is visible on the Showcase page.
Example: Setting the suppressFromShowcase field
The following example shows how to set the suppressFromShowcase field and hide the selected content from the Showcase page.
This is achieved using the PATCH API endpoint.
Select the query:
PATCH /Libraries/reports/products/{productCode}/metadata
Add the report ID in the ProductCode parameter.
In the query 'body' section, replace the path "string" value with "/SuppressFromShowcase".
Set the value "string" to true.
See example below
[
{
"op": "Add",
"path": "/SuppressFromShowcase",
"value": true
}
]
Select Execute to run the endpoint.
The selected report will now be hidden from the Showcase page.