# 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:** [2016年八月30日 19: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:** 7

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [2018年十月24日 08:49 UTC](https://meta.discourse.org/t/are-custom-fields-on-posts-topics-available-via-the-api/49455/7 "2018-10-24T08:49:24Z")

</div>

You can post events plugin events via the API. There’s an example here:

> [@Events Plugin calendar](https://meta.discourse.org/t/events-plugin-calendar/69776/28):
>
> It is now slight_smile[https://github.com/angusmcleod/discourse-events/commit/33ba86f66e22afaab30dd64eb0e51e45f17860c9](https://github.com/angusmcleod/discourse-events/commit/33ba86f66e22afaab30dd64eb0e51e45f17860c9) To add a date and time when creating a topic, pass a JSON event string with start and end set as datetimes in ISO 8601 format. Example request: curl -X POST \ https://your\_site/posts \ -H 'cache-control: no-cache' \ -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \ -F api\_key=your\_key \ -F api\_username=your\_username \ -F …

---

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