links

POST /v1/content/posts

Write a new post.

Wszystkie punkty końcowe links

Uwierzytelnianie

Wyślij klucz API jako token bearer. Ten punkt końcowy nie określa konkretnego uprawnienia w specyfikacji, więc nadaj swojemu kluczowi minimum potrzebnych uprawnień i sprawdź odpowiedź zamiast zakładać.

Ten punkt końcowy nie wymaga identyfikatora organizacji. Twój klucz już identyfikuje organizację, do której należy, a odpowiedź jest do niej ograniczona.

Wypróbuj

Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.

curl -X POST https://api.zinndigital.com/v1/content/posts \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "title": <string> }'

Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API

Szczegóły

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.

Treść żądania

NazwaTypWymaganeCo to jest
titlestringTak
body_htmlstringNie
notesstringNie

Odpowiedź

NazwaTypWymaganeCo to jest
idstringTak
titlestringTak
body_htmlstringTakThe 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.
notesstringTakThe customer's own notes — V1's `Post.notes`. Never published.
statusstring<draft, ready>Tak
placement_countintegerTakSites this post is scheduled or live on.
published_countintegerTak
created_atstringTak
updated_atstringTak

Błędy, które ten punkt końcowy może zwrócić

401 · 403 · 422