# 通过 REST-API 创建用户似乎无法工作

**URL:** <https://meta.discourse.org/t/create-user-via-rest-api-does-not-seem-to-be-working/355112>\
**Category:** Support\
**Created:** [2025年二月28日 22:16 UTC](https://meta.discourse.org/t/create-user-via-rest-api-does-not-seem-to-be-working/355112 "2025-02-28T22:16:29Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [2025年三月3日 07:53 UTC](https://meta.discourse.org/t/create-user-via-rest-api-does-not-seem-to-be-working/355112/7 "2025-03-03T07:53:13Z")

</div>

我意识到我们的 API 文档中存在一个错误。`active` 参数仅在使用了与管理员用户关联的 API 密钥时才允许使用，并且自 2016 年以来一直是这种情况（[https://github.com/discourse/discourse/commit/429f27ec96c090d9054c498263f0cb635b665d99](https://github.com/discourse/discourse/commit/429f27ec96c090d9054c498263f0cb635b665d99)）。

目前，我已在 [https://github.com/discourse/discourse/pull/31578](https://github.com/discourse/discourse/pull/31578) 中更正了文档。

---

_[View the full topic](https://meta.discourse.org/t/create-user-via-rest-api-does-not-seem-to-be-working/355112)._
