links

GET /v1/content/targets/facets

Filter counts over the whole matching set, not the current page.

Tutti gli endpoint links

Autenticazione

Invia una chiave API come bearer token. Questo endpoint non specifica un permesso specifico nella specifica, quindi assegna alla tua chiave i permessi minimi necessari e verifica la risposta invece di fare supposizioni.

L'ID della tua organizzazione va qui

Questo endpoint accetta org_id come parametro di query. Omettilo e la chiamata coprirà l'intero sottoalbero del tuo tenant; invialo per limitare la chiamata a una singola organizzazione.

L'identificativo della tua organizzazione si trova nella schermata delle chiavi API nella tua dashboard, accanto alla chiave stessa. È lo stesso identificativo in ogni chiamata che effettui.

Provalo

Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua dashboard.

curl -X GET https://api.zinndigital.com/v1/content/targets/facets \
  -H "Authorization: Bearer zdk_live_…"

Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API

Dettagli

Counts per suitability, product line, CMS and site group, computed over **every** site matching the current filters. Gated on `links.view`. ⭐ This is what makes "select all 214 matching" a number a customer can trust rather than an extrapolation from the 50 rows on screen. It accepts the same filter parameters as `listContentTargets`. ⛔ The `unknown` count **includes every site that has never been probed**. A facet that counted only stored rows would report `unknown: 0` on an estate where nothing had been checked — a blind instrument reporting that everything is fine.

Parametri

NomeTipoObbligatorioChe cos'è
org_id (query)stringNo
q (query)stringNo
suitability (query)string<ready, needs_setup, unknown, unsuitable, blocked>No
product_line (query)stringNo
stack_type (query)stringNo
group_id (query)stringNo
cms (query)stringNo

Risposta

NomeTipoObbligatorioChe cos'è
totalinteger
suitabilityContentTargetFacetCount[]
product_lineContentTargetFacetCount[]
cmsContentTargetFacetCount[]
groupContentTargetFacetCount[]

Errori che questo endpoint può restituire

401 · 403