syndication

POST /v1/syndication/posts/{postId}/{action}

Approve, reject or retry one channel's post.

Všechny koncové body syndication

Všechny dokumenty pro vývojáře

Autentizace

Odešlete klíč API jako bearer token. Tento koncový bod ve specifikaci uvádí specifické oprávnění, takže svému klíči udělte to nejmenší možné a místo předpokladů zkontrolujte odpověď.

Tento koncový bod nevyžaduje žádné ID organizace. Váš klíč již identifikuje organizaci, ke které patří, a odpověď je na ni omezena.

Vyzvednout

Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.

curl -X POST https://api.zinndigital.com/v1/syndication/posts/{postId}/{action} \
  -H "Authorization: Bearer zdk_live_…"

Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API

Podrobnosti

Approving queues the post for the next sweep; rejecting settles it skipped because nothing went wrong; retrying re-queues a failed or needs_reconnect post — reconnect the account first, or it will settle the same way again. Gated on syndication.manage.

Parametry

NázevTypPožadovánoCo to je
postId (path)stringAno
action (path)string<approve, reject, retry>Anoapprove clears a held post for sending, reject marks it skipped (nothing went wrong — the customer said no), retry re-queues a failed one.

Odpověď

NázevTypPožadovánoCo to je
idstringAno
channelstringAno
connection_idstringAno
connection_labelstringAno
statusstring<drafting, awaiting_approval, queued, posted, failed, needs_reconnect, skipped>Ano⛔⛔ needs_reconnect is NOT failed. skipped means the customer said no or the connection was removed — nothing went wrong.
textstringAno
remote_urlstringAnoThe live post, read back from the channel where it returns one. ⛔ Empty where the vendor gives us nothing to build a URL from (a Slack incoming webhook answers the literal string…
droppedstring[][]Ano[[field, reason], …] — what this channel could not carry, and WHY. The reason travels: "no image endpoint" and "the upload was refused" are different problems with different…
errorstringAnoA machine code, never a sentence.
cost_microsintegerAnoWhat this post cost us, in USD micros. One line per channel per post.
character_limitintegerAno
posted_atstringAno

Chyby, které může tento koncový bod vrátit

401 · 403 · 404