links

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

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

Semua titik akhir links

Autentikasi

Kirimkan kunci API sebagai token bearer. Titik akhir ini tidak menyatakan izin tertentu dalam spesifikasi, jadi berikan kunci Anda izin minimum yang diperlukan dan periksa responsnya alih-alih berasumsi.

Endpoint ini tidak memerlukan id organisasi. Kunci Anda telah mengidentifikasi organisasi tempatnya berafiliasi, dan respons akan dibatasi untuk organisasi tersebut.

Coba

Ganti apa pun di dalam tanda kurung sudut dengan nilai Anda sendiri, dan placeholder kunci dengan kunci dari dasbor Anda.

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

Sudah masuk? Konsol API di dasbor Anda akan mengisi ID organisasi asli dan kunci Anda sendiri, serta menjalankan permintaan terhadap API langsung sehingga Anda dapat melihat respons aktualnya. Buka titik akhir ini di konsol API

Detail

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.

Parameter

NamaJenisWajibTentang apa ini
linkSetId (path)stringYa

Isi permintaan

NamaJenisWajibTentang apa ini
namestringTidak
notesstringTidak
is_archivedbooleanTidak
entriesLinkSetEntry[]Tidak

Tanggapan

NamaJenisWajibTentang apa ini
idstringYa
namestringYa
notesstringYa
is_archivedbooleanYaAn 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[]Ya
created_atstringYa
updated_atstringYa
recipe_countintegerYaHow many recipes point at this set — so a delete button can say so first.
distributionobject[]YaThe resolved share of every (URL, wording) pair, summing to 100 — what will actually happen. Computed by the same function a run uses.
distribution_errorstringYaWhy 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.

Kesalahan yang dapat dikembalikan oleh titik akhir ini

401 · 403 · 404 · 422