links

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

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

Све links крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите API кључ као bearer токен. Ова крајња тачка не наводи конкретну дозволу у спецификацији, па свом кључу доделите најмања неопходна овлашћења и проверите одговор уместо да претпостављате.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

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

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

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.

Параметри

НазивТипОбавезноШта је ово
linkSetId (path)stringДа—

Тело захтева

НазивТипОбавезноШта је ово
namestringНе—
notesstringНе—
is_archivedbooleanНе—
entriesLinkSetEntry[]Не—

Одговор

НазивТипОбавезноШта је ово
idstringДа—
namestringДа—
notesstringДа—
is_archivedbooleanДа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.
entriesLinkSetEntry[]Да—
created_atstringДа—
updated_atstringДа—
recipe_countintegerДаHow many recipes point at this set — so a delete button can say so first.
distributionobject[]ДаThe resolved share of every (URL, wording) pair, summing to 100 — what will actually happen. Computed by the same function a run uses.
distribution_errorstringДа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.

Грешке које ова крајња тачка може вратити

401 · 403 · 404 · 422