# Are custom\_fields on posts/topics available via the API?

**URL:** https://meta.discourse.org/t/are-custom-fields-on-posts-topics-available-via-the-api/49455
**Category:** Development
**Created:** [8월 30, 2016, 7:51오후 UTC](https://meta.discourse.org/t/are-custom-fields-on-posts-topics-available-via-the-api/49455 "2016-08-30T19:51:06Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![bletch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bletch/32/69088_2.png) [@bletch](https://meta.discourse.org/u/bletch)
#### Post date: [10월 24, 2018, 8:26오전 UTC](https://meta.discourse.org/t/are-custom-fields-on-posts-topics-available-via-the-api/49455/6 "2018-10-24T08:26:13Z")

</div>

Sorry for resurrecting an old thread, but I haven’t been able to answer this question by searching meta.

Are custom\_fields available on post/topics via the API?

In the answer [above](https://meta.discourse.org/t/are-custom-fields-on-posts-topics-available-via-the-api/49455/3), @Falco talks about how custom\_fields are available to the plugin developer, but I see no definitive answer to the question in the topic title. My own experience suggests that they are NOT available via the API.

I’m developing in Ruby with the Ruby API gem but can’t seem to pass a custom\_field value like others. My Ruby code is standalone so I can’t just use the Rails infrastructure to access custom\_fields.

From memory, when I developed my migration script from MVCF, the custom\_fields have to be added to an already existing parent. i.e. the parent is re-found, custom\_fields added and the parent re-saved. I can see why that might not be straightforward with the API.

I need to pass custom\_fields to categories and to topics (for the [Events plugin](https://meta.discourse.org/t/events-plugin-calendar/69776)) is it impossible or am I missing a trick?

Any help gratefully received.

---

_[View the full topic](https://meta.discourse.org/t/are-custom-fields-on-posts-topics-available-via-the-api/49455)._
