hosting

PUT /v1/sites/{siteId}/seo-settings

Choose the schedule, providers and visible metrics for this site.

Все эндпоинты hosting

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

Передайте API-ключ в качестве маркера носителя (bearer token). Эта конечная точка не указывает конкретное разрешение в спецификации, поэтому предоставьте своему ключу минимум необходимых прав и проверьте ответ, вместо того чтобы делать предположения.

Этот эндпоинт не принимает идентификатор организации. Ваш ключ уже определяет организацию, к которой он принадлежит, и ответ ограничивается ее рамками.

Попробовать

Замените всё в угловых скобках на собственные значения, а плейсхолдер ключа — на ключ из вашей панели управления.

curl -X PUT https://api.zinndigital.com/v1/sites/{siteId}/seo-settings \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

Вошли в систему? Консоль API в вашей панели управления автоматически подставляет реальный идентификатор вашей организации и ваш собственный ключ, а также выполняет запрос к работающему API, чтобы вы могли увидеть актуальный ответ. Откройте эту конечную точку в API-консоли

Подробнее

Sets how often this site is checked, which of your connected providers to ask, and which metrics to display. Checks may not be scheduled more often than every 12 hours. Hiding a metric changes only what is rendered — the reading is still taken and its history is kept, so turning it back on shows the full series rather than starting from today.

Параметры

ИмяТипОбязательноЧто это
siteId (path)UuidДаSite ID (UUIDv7).

Тело запроса

ИмяТипОбязательноЧто это
cadencestring<daily, every_other_day, weekly>Нет
providersstring[]Нет
visible_metricsstring[]Нет
pausedbooleanНет

Ответ

ИмяТипОбязательноЧто это
cadencestring<daily, every_other_day, weekly>ДаHow often this site is checked. Checks may not run more often than every 12 hours.
providersstring[]ДаWhich providers to ask, by name. Empty means "whichever of my connected keys can answer", which is the sensible setting for an account with one key.
visible_metricsstring[]ДаWhich metrics to render for this site. Empty means show everything available. A display choice only — hidden metrics are still measured and their history kept.
available_metricsstring[]ДаEvery metric the currently-funded provider can supply for this site. The set a client should offer as toggles; a metric outside it cannot be shown however it is configured, beca…
pausedbooleanДаWhen true nothing is checked and nothing is spent. History is kept, and settings are restored untouched when it is switched back on.
fundingstring<own_key, platform, none>ДаWho pays for this site's checks. `own_key` — your own connected key and your own quota, free here. `platform` — Zinn®'s accounts, under your plan or add-on. `none` — nothing can…
vendorstringНетThe provider actually serving this site, when one is.
reasonstring<no_key_connected, own_key_unusable, reseller_addon_required, not_entitled, not_in_good_standing>НетWhy no check can run, when `funding` is `none`. `own_key_unusable` means a key is stored but could not be used — usually revoked or out of quota at the provider, and Zinn® delib…

Ошибки, которые может возвращать этот эндпоинт

401 · 403 · 404 · 422