reseller

PUT /v1/reseller/brand/menu/{item_id}

Change one link.

Bütün reseller nöqtələri

Bütün tərtibatçı sənədləri

Doğrulama

API açarını bearer token kimi göndərin. Açar reseller.manage icazəsinə malik olmalıdır; bu icazəsi olmayan açar 404 deyil, 403 xətası ilə rədd edilir.

Təşkilatınızın identifikatorunun yerləşdiyi yer

Bu son nöqtə sorğu parametri kimi org_id qəbul edir. Onu buraxın və sorğu bütün kirayə alt ağacınızı əhatə etsin; sorğunu bir təşkilatla məhdudlaşdırmaq üçün onu göndərin.

Təşkilatınızın identifikatoru idarə panelinizdəki API açarları ekranında, açarın özünün yanında yerləşir. Bu, etdiyiniz hər bir sorğuda eyni identifikatordur.

Sınaqdan keçir

Bucaqlı mötərizələrdə olan hór şeyi öz qiymətlərinizlə, açar yertutucusunu isə idarə panelinizdən bir açarla əvəz edin.

curl -X PUT https://api.zinndigital.com/v1/reseller/brand/menu/{item_id} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "label": <string>, "url": <string> }'

Sistemə daxil olmusunuz? İdarə panelinizdəki API konsolu real təşkilatınızın identifikatorunu və öz açarınızı avtomatik doldurur, sorğunu canlı API-yə qarşı icra edir ki, siz faktiki cavabı görə biləsiniz. Bu son nöqtəni API konsolunda açın

Təfərrüatlar

Replaces one navigation link. Requires reseller.manage. ⛔ Scoped to your own organisation as well as to the id. A get(pk=…) would let any reseller edit any other reseller's link by guessing a uuid — and uuid7 is time-ordered, so guessing is less of a barrier than it sounds.

Parametrlər

AdTipTələb olunurNədir
org_id (query)UuidXeyrThe organization this call acts on. Optional for a caller with exactly one direct membership; required for anyone with more than one — which is every reseller and every agency…
item_id (path)stringBəli

Sorğu gövdəsi

AdTipTələb olunurNədir
labelstringBəli
urlstringBəli
iconstringXeyr
positionintegerXeyr
new_tabbooleanXeyr
visibilitystring<both, client, staff>Xeyr

Cavab

AdTipTələb olunurNədir
idstringBəli
labelstringBəli
urlstringBəli
iconstringBəliA design-system icon name from icons, or "" for a label-only item.
positionintegerBəliSort key. Ties break on the label, so the order is total and stable.
new_tabbooleanBəliRenders target="_blank". The panel pairs it with rel="noopener noreferrer" unconditionally — that is set on every external item, not only the new-tab ones, because…
visibilitystring<both, client, staff>BəliWho sees it. Filtered server-side on GET /v1/branding: a payload carrying a staff-only link that the app hides has already disclosed it to anybody with a network tab, which…
externalbooleanBəliWhether the link leaves the panel. Computed here so every renderer agrees.

Bu son nöqtənin qaytara biləcəyi xətalar

401 · 403 · 404 · 422