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.
Questo endpoint non richiede alcun ID organizzazione. La tua chiave identifica già l'organizzazione a cui appartiene e la risposta è limitata ad essa.
Provalo
Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua dashboard.
curl -X POST https://api.zinndigital.com/v1/content/posts \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "title": <string> }'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
Creates a content item. It publishes nowhere until it is given a placement — see `createPostPlacement`. Gated on `links.edit`, the same key the bulk editor uses, because this content is destined for the customer's published pages.
Corpo della richiesta
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
title | string | Sì | — |
body_html | string | No | — |
notes | string | No | — |
Risposta
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
id | string | Sì | — |
title | string | Sì | — |
body_html | string | Sì | The post body as HTML, exactly as the customer wrote it. The `<a>` tags in it are the anchors; the platform never rewrites them, on the way in or the way out. |
notes | string | Sì | The customer's own notes — V1's `Post.notes`. Never published. |
status | string<draft, ready> | Sì | — |
placement_count | integer | Sì | Sites this post is scheduled or live on. |
published_count | integer | Sì | — |
created_at | string | Sì | — |
updated_at | string | Sì | — |
Errori che questo endpoint può restituire
401 · 403 · 422