# Kibana Create Role API returns 404

**URL:** <https://discuss.elastic.co/t/kibana-create-role-api-returns-404/315211>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [September 26, 2022, 7:39pm UTC](https://discuss.elastic.co/t/kibana-create-role-api-returns-404/315211 "2022-09-26T19:39:17Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 26, 2022, 11:25pm UTC](https://discuss.elastic.co/t/kibana-create-role-api-returns-404/315211/4 "2022-09-26T23:25:48Z")

</div>

Perhaps take a look at [this post](https://discuss.elastic.co/t/file-based-roles-for-kibana-access/313040/2) talks a about the difference of creating roles through Kibana and Elasticsearch APIs

Perhaps that will help a bit... Or not i.e they are related but not the same.

Think of role API through Kibana as a higher level abstraction of the lower level elasticsearch API

Hope that makes a little sense.

---

_[View the full topic](https://discuss.elastic.co/t/kibana-create-role-api-returns-404/315211)._
