marketplace
PUT /v1/marketplace/listings/{listing_id}/packages
Replace the whole package list.
אימות
שלח מפתח API כטוקן Bearer. נקודת קצה זו אינה מציינת הרשאת ספציפית במפרט, לכן הקצה למפתח שלך את המינימום הנדרש ובדוק את התגובה במקום להניח הנחות.
נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.
נסה זאת
החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.
curl -X PUT https://api.zinndigital.com/v1/marketplace/listings/{listing_id}/packages \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "packages": <object[]> }'מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API
פרטים
Whole-list, like the field schema and for the same reason: per-package create/delete reopens the read-then-write race defect **D824** recorded, and position ordering only means anything as a set. The cap is `Marketplace.max_packages` — a ROW an operator can change, not a database constraint that would need a migration (CLAUDE.md §2.35).
פרמטרים
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
listing_id (path) | string | כן | — |
גוף הבקשה
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
packages | object[] | כן | — |
תשובה
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
data | MarketplacePackage[] | כן | — |
total | integer | כן | — |
max_packages | integer | כן | This vertical's cap, from a row an operator can change. |
permitted_billing_modes | MarketplaceBillingMode[] | לא | What this listing type allows. The form is TOLD rather than guessing: a UI that hardcoded both modes would render a control whose every submission is refused. |
permitted_billing_intervals | string<monthly, annual>[] | לא | — |
שגיאות שנקודה קצה זו עשויה להחזיר
401 · 404 · 422