syndication

PUT /v1/syndication/connections/{connectionId}

Rename a connection or replace its credential.

Ҳамаи нуқтаҳои ниҳоии syndication

Санҷиши ҳаққоният

Kalitи API-ро ҳамчун token-и bearer фиристед. Ин нуқтаи ниҳоӣ дар мушаххасот иҷозати мушаххасеро нишон намедиҳад, бинобар ин ба калиди худ ҳадди ақали заруриро диҳед ва ба ҷои тахмин кардан, ҷавобро санҷед.

Ин нуқтаи поёнӣ ягон рақами мушаххаси созмонро талаб намекунад. Калиди шумо аллакай созмонеро, ки ба он тааллуқ дорад, муайян мекунад ва ҷавоб ба он маҳдуд карда мешавад.

Санҷидан

Ҳар чизро дар қаavски кунҷӣ бо қиматҳои худ ва ҷойи нигоҳдорандаи калидро бо калима аз панели идоракунии худ иваз кунед.

curl -X PUT https://api.zinndigital.com/v1/syndication/connections/{connectionId} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

Воarid шудаед? Консоли API дар панели идоракунии шумо рақами мушаххаси ташкилоти воқеӣ ва калиди худро пур мекунад ва дархостро бар зидди API-и фаъол иҷро мекунад, то шумо посухи воқеиро бубинед. Ин нуқтаи ниҳоиро дар консоли API кушоед

Тафсилот

⛔ Omitting `credentials` KEEPS the stored credential rather than clearing it — a customer renaming a connection must not silently delete their token. Gated on `syndication.manage`.

Параметрҳо

НомНамудТалаб карда мешавадИн чӣ аст
connectionId (path)stringБале

Ҷисми дархост

НомНамудТалаб карда мешавадИн чӣ аст
namestringНе
credentialsobjectНе⛔ Omit to KEEP the stored credential. Sending it replaces the secret half.

Ҷавоб

НомНамудТалаб карда мешавадИн чӣ аст
idstringБале
channelstringБале
namestringБалеThe customer's own name for it. ⛔ `name` on the wire, `label` on the model: `Field.label` is DRF's own attribute and shadowing it is silent at runtime.
targetstringБалеThe non-secret half — a handle, an instance, a board id.
statusstring<unverified, ready, needs_reconnect, error>Бале⛔⛔ `needs_reconnect` is NOT a failure — the credential lapsed and only the customer can fix it. `unverified` means we have not looked, which is a third fact and not a quiet green.
account_refstringБалеThe account the VENDOR said this credential belongs to — discovered.
verify_errorstringБалеA machine code the dashboard turns into copy. Never a sentence.
verified_atstringБале
expires_atstringБале⛔ `null` means **no stated expiry**, which is a different fact from "never expires" and must not render as an unqualified green.
byobooleanБалеWhether the customer supplied their own developer app.
created_atstringБале

Хатоҳое, ки ин нуқтаи ниҳоӣ метавонад баргардонад

401 · 403 · 404