Update autoreply
Replace the autoreply with the given content and schedule. Omitted optional fields are cleared: omit startsat to activate the autoreply immediately and omit endsat to keep it active indefinitely.
Replace the autoreply with the given content and schedule. Omitted
optional fields are cleared: omit starts_at to activate the
autoreply immediately and omit ends_at to keep it active
indefinitely.
API Token authentication
Autoreply resource ID
AR1a2b3c4d5e6f7gSubject of the automatic reply
Out of officeBody of the automatic reply
I am on vacation until August 1st.Sender display name used for the reply
John DoeWhen the autoreply becomes active. Defaults to now.
2026-08-01T00:00:00ZWhen the autoreply stops. Omit for an indefinite autoreply.
2026-09-01T00:00:00ZSuccess response
Unique autoreply identifier
AR1a2b3c4d5e6f7gSubject of the automatic reply
Out of officeBody of the automatic reply
I am on vacation until August 1st.Sender display name used for the reply
John DoeWhen the autoreply becomes active
2026-08-01T00:00:00ZWhen the autoreply stops
2026-09-01T00:00:00Z2026-07-24T12:00:00Z2026-07-24T12:00:00ZUnauthenticated response
Error response
Error response
Error response
PUT /api/mail/v1/autoreplies/{autoreplyId} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 165
{
"subject": "Out of office",
"body": "I am on vacation until August 1st.",
"display_name": "John Doe",
"starts_at": "2026-08-01T00:00:00Z",
"ends_at": "2026-09-01T00:00:00Z"
}{
"id": "AR1a2b3c4d5e6f7g",
"mailbox": {
"id": "AC1a2b3c4d5e6f7g",
"address": "user@example.com"
},
"subject": "Out of office",
"body": "I am on vacation until August 1st.",
"display_name": "John Doe",
"starts_at": "2026-08-01T00:00:00Z",
"ends_at": "2026-09-01T00:00:00Z",
"created_at": "2026-07-24T12:00:00Z",
"updated_at": "2026-07-24T12:00:00Z"
}Last updated
Was this helpful?