ai

PUT /v1/ai/site-agent/preferences

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

Të gjitha pikat e skajshme ai

Autentifikimi

Drgoni një çelës API si një token mbajtës. Çelësi duhet të ketë lejen sites.view; një çelës pa të refuzohet me 403, jo 404.

Ky pikëndalim nuk pranon id të organizatës. Çelësi juaj tashmë identifikon organizatën së cilës i përket dhe përgjigjja kufizohet vetëm për atë.

Provoje

Zëvendësoni çdo gjë brenda kllapave këndore me vlerat tuaja dhe vendbanuesin e çelësit me një çelës nga paneli juaj.

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> }'

Jeni kyçur? Konsola e API-së në panelin tuaj plotëson ID-në tuaj reale të organizatës dhe çelësin tuaj, dhe ekzekuton kërkesën kundrejt API-së live, kështu që ju mund të shihni përgjigjen aktuale. Hapni këtë pikë fundore në konsolën e API-së

Detajet

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`.

Trupi i kërkesës

EmriLlojiKërkohetÇfarë është kjo
actionstringPo
modeAiSiteAgentModePoWhat 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…

Përgjigja

EmriLlojiKërkohetÇfarë është kjo
actionstringPoThe fix this row is about — an agent action key or a support remedy key.
requestedAiSiteAgentModePoWhat the customer chose, stored as they chose it.
effectiveAiSiteAgentModePoWhat will actually happen — `requested` clamped to `ceiling`.
ceilingAiSiteAgentModePoThe highest mode the PLATFORM currently permits for this fix. The customer cannot raise it; it moves when the fix earns a higher rung.
clampedbooleanPoTrue 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.
reasonstringJoWhy the ceiling is where it is, in words a customer reads.

Gabimet që ky pikëndalim mund të kthejë

401 · 403 · 422 · 429