# POST 到 /posts 在审核分类中返回 null

**URL:** <https://meta.discourse.org/t/post-on-posts-returns-null-on-moderated-categories/170811>\
**Category:** Support\
**Created:** [2020年十一月20日 23:40 UTC](https://meta.discourse.org/t/post-on-posts-returns-null-on-moderated-categories/170811 "2020-11-20T23:40:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dachary](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dachary/32/119731_2.png) [@dachary](https://meta.discourse.org/u/dachary)\
**Post date:** [2020年十一月20日 23:40 UTC](https://meta.discourse.org/t/post-on-posts-returns-null-on-moderated-categories/170811/1 "2020-11-20T23:40:13Z")

</div>

你好，

在 `test_passed` 上调用 `/posts` API 端点以在受监管的分类中提交新主题时，会出现以下情况：

```plaintext
$ curl -X POST http://$(cat v2.6.0/ip)/posts -H "Accept: application/json" -H "Api-Key: $(cat v2.6.0/apikey)" -H "Api-Username: NONMEMBERNAME" -F raw='thanks member@example.com is on the move message' -F title='a title from the same user but different' -F category=15
null

```

然而，当 [逆向分析该调用](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576) 时，返回的 JSON 响应如下所示：

```plaintext

POST /posts 参数：raw=adn+very+intersteing+content&title=this+is+a+band+new+topic&unlist_topic=false&category=14&is_warning=false&archetype=regular&typing_duration_msecs=5500&composer_open_duration_msecs=16411&shared_draft=false&draft_key=new_topic&nested_post=true

{"action":"enqueued","success":true,"pending_count":7,"pending_post":{"id":8,"raw":"adn very intersteing content","created_at":"2020-11-20T23:13:52.015Z"}}

```

请问造成这种差异的原因是什么？
