# REST pipeline API not allowed PUT 405

**URL:** <https://discuss.elastic.co/t/rest-pipeline-api-not-allowed-put-405/139958>\
**Category:** Elasticsearch\
**Created:** [July 13, 2018, 1:51pm UTC](https://discuss.elastic.co/t/rest-pipeline-api-not-allowed-put-405/139958 "2018-07-13T13:51:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yorick](https://avatars.discourse-cdn.com/v4/letter/y/c89c15/32.png) [@Yorick](https://discuss.elastic.co/u/Yorick)\
**Post date:** [July 13, 2018, 1:51pm UTC](https://discuss.elastic.co/t/rest-pipeline-api-not-allowed-put-405/139958/1 "2018-07-13T13:51:17Z")

</div>

HI,

When I try to save the newly created pipeline I am getting a 405. I cannot find where I have to specify to allow PUT on the elastic-search node. I already included in the config file, http.cors.allow-methods: PUT, POST, GET and tried http.cors.allow-methods: "PUT, POST, GET"

When I run the pipeline with POST it works fine.

Error:

{  
"error": "Incorrect HTTP method for uri [/\_ingest/pipeline/\_simulate] and method [PUT], allowed: [POST, GET]",  
"status": 405  
}

Could please someone point me to the right direction? Any help would be appreciated

Regards,

Yorick

---

<div class="post-metadata">

**Author:** ![Yorick](https://avatars.discourse-cdn.com/v4/letter/y/c89c15/32.png) [@Yorick](https://discuss.elastic.co/u/Yorick)\
**Post date:** [July 13, 2018, 2:15pm UTC](https://discuss.elastic.co/t/rest-pipeline-api-not-allowed-put-405/139958/2 "2018-07-13T14:15:40Z")

</div>

Works now.

---

<div class="post-metadata">

**Author:** ![Yorick](https://avatars.discourse-cdn.com/v4/letter/y/c89c15/32.png) [@Yorick](https://discuss.elastic.co/u/Yorick)\
**Post date:** [July 13, 2018, 2:17pm UTC](https://discuss.elastic.co/t/rest-pipeline-api-not-allowed-put-405/139958/3 "2018-07-13T14:17:58Z")

</div>

Use http.cors.allow-methods: PUT, GET, POST etc. Restart and try again within Kibana but without cache.

---

<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:** [August 10, 2018, 2:27pm UTC](https://discuss.elastic.co/t/rest-pipeline-api-not-allowed-put-405/139958/4 "2018-08-10T14:27:03Z")

</div>

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