---
title: "ユーザー辞書をインポートする"
method: POST
path: "/import_user_dict"
tags: ["ユーザー辞書"]
---

# ユーザー辞書をインポートする

`POST /import_user_dict`

指定されたユーザー辞書をインポートします。<br>
従来の API と互換性のある `UserDictWordForCompat` と、AivisSpeech Engine 1.1.0 以降で利用可能な `UserDictWord` の両方の型に対応しています。<br>
`?override=true` を指定すると、UUID が重複したエントリはインポートしたデータで上書きされます。

## Query parameters

- `override` boolean, required — 重複したエントリがあった場合、上書きするかどうか

## Request body

- object — インポートするユーザー辞書のデータ

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

## Changes

- **2026-03-31** `bd7182f25e54` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2025-03-25** `828800b57233` — 2 info
  - added the new optional request property `additionalProperties/anyOf[subschema #1: UserDictWord]/word_type`
  - the `mora_count` request property default value `` was added
- **2025-03-19** `fc00e77ecad2` — 1 breaking, 15 warning, 1 info
  - the `additionalProperties/` request property type/format changed from `object`/`` to ``/``
  - removed the request property `additionalProperties/accent_associative_rule`
  - removed the request property `additionalProperties/accent_type`
  - removed the request property `additionalProperties/context_id`
  - …13 more
- **2025-03-02** `d8b6a60f88af` — 1 info
  - api operation id `import_user_dict_words_import_user_dict_post` removed and replaced with `import_user_dict_words`
- **2024-07-20** `eb97301b5bb3` — 1 breaking
  - request property `additionalProperties/mora_count` list-of-types was narrowed by removing types `null` from media type `application/json`

[Full history](https://skmtc.dev/aivis-project/apis/aivisspeech-engine/changes/import_user_dict/post.md)

---

[API](https://skmtc.dev/aivis-project/apis/aivisspeech-engine.md) · [All operations](https://skmtc.dev/aivis-project/apis/aivisspeech-engine/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aivis-project/aivisspeech-engine/revisions/1d935a3e31b8/schema)
