links

POST /v1/content/posts

Write a new post.

Բոլոր links վերջնակետերը

Նույնականացում

Ուղարկեք API բանալին որպես bearer թոքեն։ Այս վերջնակետը բնութագրում չի նշում որոշակի թույլտվության մասին, ուստի տվեք ձեր բանալուն նվազագույն անհրաժեշտը և ենթադրություններ անելու փոխարեն ստուգեք պատասխանը:

Այս վերջնակետը կազմակերպության ID չի ընդունում: Ձեր բանալին արդեն իսկ նույնականացնում է այն կազմակերպությունը, որին պատկանում է, և պատասխանը սահմանափակված է դրանով:

Փորձել

Փոխարինեք անկյունային փակագծերում գտնվող ցանկացած բան ձեր սեփական արժեքներով, և բանալու տեղապահը՝ ձեր վահանակի բանալիով:

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

Մուտք գործե՞լ եք: Ձեր վահանակի API վահանակը լրացնում է ձեր իրական կազմակերպության ID-ն և ձեր սեփական բանալին և գործարկում է հարցումը ուղիղ API-ի դեմ, որպեսզի կարողանաք տեսնել փաստացի պատասխանը: Բացեք այս վերջնակետը API վահանակում

Մանրամասներ

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.

Հարցման մարմին

ԱնունՏեսակՊահանջվում էԻնչ է դա
titlestringԱյո
body_htmlstringՈչ
notesstringՈչ

Պատասխան

ԱնունՏեսակՊահանջվում էԻնչ է դա
idstringԱյո
titlestringԱյո
body_htmlstringԱյո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.
notesstringԱյոThe customer's own notes — V1's `Post.notes`. Never published.
statusstring<draft, ready>Այո
placement_countintegerԱյոSites this post is scheduled or live on.
published_countintegerԱյո
created_atstringԱյո
updated_atstringԱյո

Այս վերջնակետի կողմից վերադարձվող սխալները

401 · 403 · 422