syndication

PUT /v1/syndication/connections/{connectionId}

Rename a connection or replace its credential.

Vituo vyote vya syndication

Uthibitishaji

Tuma ufunguo wa API kama tokeni ya kubeba. Sehemu hii ya mwisho haitaji ruhusa maalum katika maelezo, kwa hivyo ipe ufunguo wako kiwango cha chini kabisa kinachohitajika na uangalie jibu badala ya kukisia.

Endpoint hii haichukui kitambulisho cha shirika. Ufunguo wako tayari unalitambua shirika linalohusika, na jibu limewekewa kikomo kwa shirika hilo pekee.

Jaribu

Badilisha chochote kilicho ndani ya mabano ya pembe na maadili yako mwenyewe, na kishikiliaji cha ufunguo na ufunguo kutoka kwa dashibodi yako.

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

Umeingia kwenye akaunti? Dashibodi yako ya kiweko cha API inajaza kitambulisho chako halisi cha shirika na ufunguo wako mwenyewe, na kuendesha ombi dhidi ya API ya moja kwa moja ili uweze kuona jibu halisi. Fungua sehemu hii ya mwisho (endpoint) kwenye konsole ya API

Maelezo

⛔ 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`.

Vigezo

JinaAinaInayohitajikaKilicho hiki
connectionId (path)stringNdiyo

Mwili wa ombi

JinaAinaInayohitajikaKilicho hiki
namestringHapana
credentialsobjectHapana⛔ Omit to KEEP the stored credential. Sending it replaces the secret half.

Majibu

JinaAinaInayohitajikaKilicho hiki
idstringNdiyo
channelstringNdiyo
namestringNdiyoThe 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.
targetstringNdiyoThe non-secret half — a handle, an instance, a board id.
statusstring<unverified, ready, needs_reconnect, error>Ndiyo⛔⛔ `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_refstringNdiyoThe account the VENDOR said this credential belongs to — discovered.
verify_errorstringNdiyoA machine code the dashboard turns into copy. Never a sentence.
verified_atstringNdiyo
expires_atstringNdiyo⛔ `null` means **no stated expiry**, which is a different fact from "never expires" and must not render as an unqualified green.
byobooleanNdiyoWhether the customer supplied their own developer app.
created_atstringNdiyo

Hitilafu ambazo mwisho huu unaweza kurudisha

401 · 403 · 404