links

PATCH /v1/content/link-sets/{linkSetId}

Rename a link set, archive it, or replace its links.

Wszystkie punkty końcowe links

Wszystkie dokumentacje dla programistów

Uwierzytelnianie

Wyślij klucz API jako token bearer. Ten punkt końcowy nie określa konkretnego uprawnienia w specyfikacji, więc nadaj swojemu kluczowi minimum potrzebnych uprawnień i sprawdź odpowiedź zamiast zakładać.

Ten punkt końcowy nie wymaga identyfikatora organizacji. Twój klucz już identyfikuje organizację, do której należy, a odpowiedź jest do niej ograniczona.

Wypróbuj

Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.

curl -X PATCH https://api.zinndigital.com/v1/content/link-sets/{linkSetId} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API

Szczegóły

Gated on links.edit. Sending entries replaces the whole list. That is safe for a link's placement history because the history is keyed on the URL and wording, not on a row id — so editing the list does not reset how often a link has been used.

Parametry

NazwaTypWymaganeCo to jest
linkSetId (path)stringTak

Treść żądania

NazwaTypWymaganeCo to jest
namestringNie
notesstringNie
is_archivedbooleanNie
entriesLinkSetEntry[]Nie

Odpowiedź

NazwaTypWymaganeCo to jest
idstringTak
namestringTak
notesstringTak
is_archivedbooleanTakAn archived set is hidden from the picker and takes no new recipes; the recipes already using it keep working. Archiving is offered where deleting is refused.
entriesLinkSetEntry[]Tak
created_atstringTak
updated_atstringTak
recipe_countintegerTakHow many recipes point at this set — so a delete button can say so first.
distributionobject[]TakThe resolved share of every (URL, wording) pair, summing to 100 — what will actually happen. Computed by the same function a run uses.
distribution_errorstringTakWhy there is no distribution, or empty. Separate from distribution because an empty list also means "this set has no links", and one value for two facts is not an answer.

Błędy, które ten punkt końcowy może zwrócić

401 · 403 · 404 · 422