# Create Or Update Role API returns 404

**URL:** <https://discuss.elastic.co/t/create-or-update-role-api-returns-404/206066>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [October 31, 2019, 3:02pm UTC](https://discuss.elastic.co/t/create-or-update-role-api-returns-404/206066 "2019-10-31T15:02:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Netanel\_Malka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/netanel_malka/32/47520_2.png) [@Netanel\_Malka](https://discuss.elastic.co/u/Netanel_Malka)\
**Post date:** [October 31, 2019, 3:02pm UTC](https://discuss.elastic.co/t/create-or-update-role-api-returns-404/206066/1 "2019-10-31T15:02:44Z")

</div>

Hi,  
We follow the instructions as described [here](https://www.elastic.co/guide/en/kibana/7.4/role-management-api-put.html)

We are trying to create a role via the Kibana security API, but we are getting **404**.  
If we try to send a "GET" request instead of "PUT" it works.

Elastic + Kibana version: 7.2.0 / 7.4.1 (we have tried both of them)

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [November 1, 2019, 5:47pm UTC](https://discuss.elastic.co/t/create-or-update-role-api-returns-404/206066/2 "2019-11-01T17:47:43Z")

</div>

Can you provide the CURL request used with the 404 response?

---

<div class="post-metadata">

**Author:** ![Netanel\_Malka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/netanel_malka/32/47520_2.png) [@Netanel\_Malka](https://discuss.elastic.co/u/Netanel_Malka)\
**Post date:** [November 3, 2019, 1:12pm UTC](https://discuss.elastic.co/t/create-or-update-role-api-returns-404/206066/3 "2019-11-03T13:12:13Z")

</div>

When using CURL I get nothing. not even an error.  
What I'm using is POSTMAN, with following url:  
[http://kbnsrvr:5601/api/security/role/test2](http://kbnsrvr:5601/api/security/role/test2)

The body is irrelevant, I think, because I get a 404 error, and not an HTML.  
(When using GET method, I do receive an HTML back. )

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 1, 2019, 1:12pm UTC](https://discuss.elastic.co/t/create-or-update-role-api-returns-404/206066/4 "2019-12-01T13:12:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
