---
title: "Update autoreply"
method: PUT
path: "/api/mail/v1/autoreplies/{autoreplyId}"
tags: ["Mail: Autoreplies"]
---

# Update autoreply

`PUT /api/mail/v1/autoreplies/{autoreplyId}`

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.

## Path parameters

- `autoreplyId` string, required

## Request body

- MailV1SchemaUpsertAutoreplyRequestSchema
  - `subject` string, required — Subject of the automatic reply
  - `body` string, required — Body of the automatic reply
  - `display_name` string, nullable — Sender display name used for the reply
  - `starts_at` string, date-time, nullable — When the autoreply becomes active. Defaults to now.
  - `ends_at` string, date-time, nullable — When the autoreply stops. Omit for an indefinite autoreply.

## Response `200`

Success response

- MailV1AutorepliesAutoreplyResource
  - `id` string — Unique autoreply identifier
  - `mailbox` MailV1AutorepliesAutoreplyMailboxResource
    - `id` string — Mailbox resource ID
    - `address` string
  - `subject` string — Subject of the automatic reply
  - `body` string — Body of the automatic reply
  - `display_name` string, nullable — Sender display name used for the reply
  - `starts_at` string, date-time — When the autoreply becomes active
  - `ends_at` string, date-time, nullable — When the autoreply stops
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401` — Unauthenticated response
- `404` — Error response
- `422` — Error response
- `500` — Error response

---

[API](https://skmtc.net/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.net/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/796bd5194565/schema)
