# API not returning suspended fields properly

**URL:** <https://meta.discourse.org/t/api-not-returning-suspended-fields-properly/71850>\
**Category:** Bug\
**Created:** [October 11, 2017, 3:30pm UTC](https://meta.discourse.org/t/api-not-returning-suspended-fields-properly/71850 "2017-10-11T15:30:09Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Geoffrey\_Challen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/geoffrey_challen/32/119637_2.png) [@Geoffrey\_Challen](https://meta.discourse.org/u/Geoffrey_Challen)\
**Post date:** [October 11, 2017, 3:30pm UTC](https://meta.discourse.org/t/api-not-returning-suspended-fields-properly/71850/1 "2017-10-11T15:30:09Z")

</div>

In the past the API returned a user object with `suspended: true` (or some non-null value) when a user was suspended. A recent change seems to break that behavior. Now, `suspended_at` can be non-null while `suspended` is null.

Here is an example snippet returned by the API:

```json
  "title": null,
  "suspended_at": "2017-10-11T15:11:26.936Z",
  "suspended_till": null,
  "suspended": null,
  "blocked": false,

```

This seems like a recent regression, since scripts that I wrote in August that relied on this behavior only recently stopped working properly. I’m on 1.9.0.beta12.

---

_[View the full topic](https://meta.discourse.org/t/api-not-returning-suspended-fields-properly/71850)._
