ai

PUT /v1/ai/site-agent/preferences

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

सर्व ai एंडपॉइंट्स

सर्व डेव्हलपर कागदपत्रे

प्रमाणीकरण

बेरर टोकन म्हणून API की पाठवा. की मध्ये sites.view परवानगी असणे आवश्यक आहे; ती नसलेली की 404 ऐवजी 403 सह नाकारली जाते.

या एंडपॉइंटला कोणतीही संस्था आयडी (organisation id) लागत नाही. तुमची की (key) आधीच ती कोणत्या संस्थेशी संबंधित आहे हे ओळखते आणि प्रतिसाद त्यानुसार मर्यादित केला जातो.

प्रयत्न करा

कोनसांस्कृतिक कंसात (<>) असलेली कोणतीही गोष्ट तुमच्या स्वतःच्या मूल्यांनी बदला आणि key प्लेसहोल्डरला तुमच्या डॅशबोर्डवरील किने बदला.

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 विरुद्ध विनंती कार्यान्वित करतो जेणेकरून तुम्हाला वास्तविक प्रतिसाद पाहता येईल. एपी कन्सोलमध्ये हा एंडपॉइंट उघडा

तपशील

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 and…

प्रतिसाद

नावप्रकारआवश्यकहे काय आहे
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.

ही एंडपॉइंट परत करू शकेल अशा त्रुटी

401 · 403 · 422 · 429