mail

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

Set an auto-reply on a mailbox.

ټول mail پای ټکي

تصدیق‌هویت

یو API کی د بیئرر ټوکن (bearer token) په توګه ولیکئ. کی باید د 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 کنسول ستاسو د اصلي سازمان ID او ستاسو خپله کیلي ډکوي، او غوښتنه د ژوندی API په وړاندې پرمخ وړي ترڅو تاسو وکولی شئ اصلي ځواب وګورئ. دا پای ټکی (endpoint) د 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