POST /v1/mail/services/{mailServiceId}/responders
Set an auto-reply on a mailbox.
Autentifikimi
Drgoni një çelës API si një token mbajtës. Çelësi duhet të ketë lejen mail.manage; 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 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> }'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
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`.
Parametrat
| Emri | Lloji | Kërkohet | Çfarë është kjo |
|---|---|---|---|
mailServiceId (path) | Uuid | Po | Email service ID (UUIDv7). |
Trupi i kërkesës
| Emri | Lloji | Kërkohet | Çfarë është kjo |
|---|---|---|---|
local | string | Po | The mailbox to auto-reply for. |
subject | string | Jo | — |
content | string | Po | — |
start_time | string | Jo | RFC 3339. Omit or `null` for no schedule - see `MailResponder`. |
end_time | string | Jo | RFC 3339, and must be after `start_time` when both are given. |
Përgjigja
| Emri | Lloji | Kërkohet | Çfarë është kjo |
|---|---|---|---|
id | string | Po | The mail backend's identifier - the handle `DELETE` needs. |
local | string | Po | The part before the `@`. |
address | string | Po | The mailbox this replies for. |
subject | string | Po | — |
content | string | Po | The reply body. |
start_time | string | Po | 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_time | string | Po | When the auto-reply stops. `null` to run until switched off. |
Gabimet që ky pikëndalim mund të kthejë
401 · 403 · 404 · 422 · 429 · 503