ai

PUT /v1/ai/site-agent/preferences

Choose what the AI may do for one kind of fix.

Всички крайни точки в ai

Упълномощаване

Изпратете API ключ като токен за носене. Ключът трябва да притежава разрешението sites.view; ключ без него се отхвърля с 403, а не с 404.

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

Опитайте

Заменете всичко в квадратни скоби със собствени стойности, а ключовия заместващ символ – с ключ от вашето табло за управление.

curl -X PUT https://api.zinndigital.com/v1/ai/site-agent/preferences \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "action": <string>, "mode": <AiSiteAgentMode> }'

Влязохте ли в профила си? API конзолата във вашето табло за управление попълва действителното идентификационно число на вашата организация и вашия собствен ключ и изпълнява заявката спрямо реалното API, за да можете да видите действителния отговор. Отворете този крайpoint в API конзолата

Детайли

Records the customer's wish. The **requested** value is stored, never the clamped one: a customer who asks for "just fix it" on a fix still earning its rung keeps that setting, and it takes effect on its own the day the fix is promoted. Storing the clamp instead would quietly downgrade them for ever with no way to see it had happened. An unknown action or remedy key is a `422` naming it, never a silently ignored write. Requires `sites.view`.

Тяло на заявката

ИмеТипЗадължителноКакво представлява
actionstringДа
modeAiSiteAgentModeДаWhat the customer wants the AI to do about one kind of fix. `ask` proposes it and waits for a button; `canary` applies it to one site and checks the result; `auto` applies it an…

Отговор

ИмеТипЗадължителноКакво представлява
actionstringДаThe fix this row is about — an agent action key or a support remedy key.
requestedAiSiteAgentModeДаWhat the customer chose, stored as they chose it.
effectiveAiSiteAgentModeДаWhat will actually happen — `requested` clamped to `ceiling`.
ceilingAiSiteAgentModeДаThe highest mode the PLATFORM currently permits for this fix. The customer cannot raise it; it moves when the fix earns a higher rung.
clampedbooleanДаTrue when the customer asked for more than the ceiling allows. The screen must say so — otherwise their choice looks as though it did not register.
reasonstringНеWhy the ceiling is where it is, in words a customer reads.

Грешки, които този крайpoint може да върне

401 · 403 · 422 · 429