syndication

PUT /v1/syndication/connections/{connectionId}

Rename a connection or replace its credential.

جميع نقاط نهاية syndication

المصادقة

أرسل مفتاح واجهة برمجة التطبيقات (API) كرمز حامل (bearer token). لا يحدد نقطة النهاية هذه إذنًا محددًا في المواصفات، لذا امنح مفتاحك الحد الأدنى الذي محتاجه وتحقق من الاستجابة بدلاً من الافتراض.

لا يقبل هذا الطرف أي معرف للمؤسسة. يحدد مفتاحك بالفعل المؤسسة التي ينتمي إليها، وتكون الاستجابة محصورة في نطاقها.

جربه الآن

استبدل أي شيء بين أقواس زاوية بقيمك الخاصة، والعنصر النائب للمفتاح بمفتاح من لوحة تحكمك.

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

هل سجلت الدخول؟ تقوم وحدة تحكم واجهة برمجة التطبيقات في لوحة التحكم الخاصة بك بربط معرف مؤسستك الحقيقي ومفتاحك الخاص، وتنفذ الطلب مقابل واجهة برمجة التطبيقات المباشرة لتتمكن من رؤية الاستجابة الفعلية. افتح هذه النهاية الطرفية في وحدة تحكم 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