links

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

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

Všechny koncové body links

Autentizace

Odešlete klíč API jako bearer token. Tento koncový bod ve specifikaci uvádí specifické oprávnění, takže svému klíči udělte to nejmenší možné a místo předpokladů zkontrolujte odpověď.

Tento koncový bod nevyžaduje žádné ID organizace. Váš klíč již identifikuje organizaci, ke které patří, a odpověď je na ni omezena.

Vyzvednout

Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.

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

Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API

Podrobnosti

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

NázevTypPožadovánoCo to je
linkSetId (path)stringAno

Tělo požadavku

NázevTypPožadovánoCo to je
namestringNe
notesstringNe
is_archivedbooleanNe
entriesLinkSetEntry[]Ne

Odpověď

NázevTypPožadovánoCo to je
idstringAno
namestringAno
notesstringAno
is_archivedbooleanAnoAn 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[]Ano
created_atstringAno
updated_atstringAno
recipe_countintegerAnoHow many recipes point at this set — so a delete button can say so first.
distributionobject[]AnoThe resolved share of every (URL, wording) pair, summing to 100 — what will actually happen. Computed by the same function a run uses.
distribution_errorstringAnoWhy 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.

Chyby, které může tento koncový bod vrátit

401 · 403 · 404 · 422