Update autoreply
Update vacation autoreply (auto-responder)
- HTTP Method:
PUT
- URL:
https://example.domain.tld/api/v1/vacation_autoreply/
- Require authentication:
Yes
- Permission level required:
MailUser
Request parameters
Parameter |
Type |
Description |
Required |
subject |
str |
Subject of autoreply email |
Required |
body |
str |
Body of autoreply email |
Required |
start_time |
int |
Start of autoreply as UNIX timestamp (seconds) |
Optional |
end_time |
int |
End of autoreply as UNIX timestamp (seconds) |
Optional |
Response parameters
Parameter |
Type |
Description |
subject |
str |
Subject of autoreply email |
body |
str |
Body of autoreply email |
start_time |
int |
Start of autoreply as UNIX timestamp (seconds) |
end_time |
int |
End of autoreply as UNIX timestamp (seconds) |
status |
str |
Status |
Example request (Python)
import requests
import json
from pprint import pprint
url = "https://example.domain.tld/api/v1/vacation_autoreply/"
data = {
"subject" : "On holidays",
"body" : "I will be out of office until the 20th, please contact Sam instead.",
"start_time" : 1630671300,
"end_time" : 1630672200
}
r = requests.put(url, json=data, auth=("u1@vonmail.com","long-auth_token-here"))
try:
pprint(r.json())
except:
print(r.text)
Example response (JSON)
{'body': 'I will be out of office until the 20th, please contact Sam instead.',
'status': 're-generating',
'start_time': 1630671300,
'end_time': 1630672200,
'subject': 'On holidays'}