---
title: "Replace domain verification files"
method: PUT
path: "/api/domains/{id}/verification-files"
tags: ["Domains"]
---

# Replace domain verification files

`PUT /api/domains/{id}/verification-files`

Replace the verification files served from the custom domain.

## Path parameters

- `id` string, required

## Request body

- object
  - `verificationFiles` object, required — Up to 10 text or JSON verification files served as filenames with extensions at the domain root, or at paths under `/.well-known/`.

## Response `200`

The domain verification files were replaced successfully.

- object — Validator function

## Other responses

- `400` — Validation error. Please check the request body.
- `401` — Unauthorized
- `403` — Forbidden
- `404` — The domain with the specified ID was not found.

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/versions/a163dc77d842/schema)
