mail

POST /v1/mail/services/{mailServiceId}/responders

Set an auto-reply on a mailbox.

تمام mail اینڈ پوائنٹس

توثيقِ شناخت

ایک بیرر ٹوکن کے طور پر ایک API کی بھیجیں۔ کی کے پاس mail.manage اجازت ہونی چاہیے؛ اس کے بغیر کی کو 404 کے بجائے 403 کے ساتھ مسترد کر دیا جاتا ہے۔

یہ اینڈ پوائنٹ کوئی آرگنائزیشن آئی ڈی نہیں لیتا۔ آپ کی کلید پہلے ہی اس آرگنائزیشن کی شناخت کرتی ہے جس سے یہ تعلق رکھتی ہے، اور اس کا جواب اسی کے مطابق محدود ہوتا ہے۔

آزمائیں

کوئی بھی چیز جو زاویہ دار قوسین میں ہو اسے اپنی اقدار سے بدلیں، اور کلیدی پلیس ہولڈر کو اپنے ڈیش بورڈ کی کسی کلید سے بدلیں۔

curl -X POST https://api.zinndigital.com/v1/mail/services/{mailServiceId}/responders \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "local": <string>, "content": <string> }'

لاگ ان ہیں؟ آپ کے ڈیش بورڈ میں موجود API کنسول آپ کی حقیقی تنظیم کی آئی ڈی اور آپ کی اپنی کلید خود بخود پُر کر دیتا ہے، اور لائیو API پر درخواست چلاتا ہے تاکہ آپ اصل ردعمل دیکھ سکیں۔ اس اینڈ پوائنٹ کو API کنسول میں کھولیں

تفصیلات

Idempotent on `local`: re-posting for the same mailbox reconciles to the existing responder rather than creating a second one, which is the backend's own natural key. Requires `mail.manage`.

پیرامیٹرز

نامقسملازمییہ کیا ہے
mailServiceId (path)UuidہاںEmail service ID (UUIDv7).

درخواست کا باڈی

نامقسملازمییہ کیا ہے
localstringہاںThe mailbox to auto-reply for.
subjectstringنہیں
contentstringہاں
start_timestringنہیںRFC 3339. Omit or `null` for no schedule - see `MailResponder`.
end_timestringنہیںRFC 3339, and must be after `start_time` when both are given.

جواب

نامقسملازمییہ کیا ہے
idstringہاںThe mail backend's identifier - the handle `DELETE` needs.
localstringہاںThe part before the `@`.
addressstringہاںThe mailbox this replies for.
subjectstringہاں
contentstringہاںThe reply body.
start_timestringہاںWhen the auto-reply starts. `null` when unscheduled (it replies from now on). ⭐ This used to be declared **"Opaque - do not parse, compare or render as a date"** (#664), out of…
end_timestringہاںWhen the auto-reply stops. `null` to run until switched off.

وہ خرابیان جو یہ اینڈ پوائنٹ واپس کر سکتا ہے

401 · 403 · 404 · 422 · 429 · 503