links
PATCH /v1/content/link-sets/{linkSetId}
Rename a link set, archive it, or replace its links.
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
| Nazwa | Typ | Wymagane | Co to jest |
|---|---|---|---|
linkSetId (path) | string | Tak | — |
Treść żądania
| Nazwa | Typ | Wymagane | Co to jest |
|---|---|---|---|
name | string | Nie | — |
notes | string | Nie | — |
is_archived | boolean | Nie | — |
entries | LinkSetEntry[] | Nie | — |
Odpowiedź
| Nazwa | Typ | Wymagane | Co to jest |
|---|---|---|---|
id | string | Tak | — |
name | string | Tak | — |
notes | string | Tak | — |
is_archived | boolean | Tak | An 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. |
entries | LinkSetEntry[] | Tak | — |
created_at | string | Tak | — |
updated_at | string | Tak | — |
recipe_count | integer | Tak | How many recipes point at this set — so a delete button can say so first. |
distribution | object[] | Tak | The resolved share of every (URL, wording) pair, summing to 100 — what will actually happen. Computed by the same function a run uses. |
distribution_error | string | Tak | Why 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