# Voting exclusion api wrong HTTP method

**URL:** <https://discuss.elastic.co/t/voting-exclusion-api-wrong-http-method/241638>\
**Category:** Elasticsearch\
**Created:** [July 17, 2020, 12:03pm UTC](https://discuss.elastic.co/t/voting-exclusion-api-wrong-http-method/241638 "2020-07-17T12:03:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmporary](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@tmporary](https://discuss.elastic.co/u/tmporary)\
**Post date:** [July 17, 2020, 12:03pm UTC](https://discuss.elastic.co/t/voting-exclusion-api-wrong-http-method/241638/1 "2020-07-17T12:03:43Z")

</div>

Im using this dcumentation as a reference:  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/voting-config-exclusions.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/voting-config-exclusions.html)

`POST https://MY_DOMAIN/_cluster/voting_config_exclusions?node_ids=firstId,secondId`

Response:

```
{
	"error": "Incorrect HTTP method for uri [/_cluster/voting_config_exclusions?node_ids=CWH-pph2Tp2PuHwr6Cf7EA,PoWXZIZvQnegbEd5WNb2ew] and method [POST], allowed: [DELETE]",
	"status": 405
}

```

So is method POST allowed or not cause there's a little discrepancy between docs and that

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [July 17, 2020, 3:26pm UTC](https://discuss.elastic.co/t/voting-exclusion-api-wrong-http-method/241638/2 "2020-07-17T15:26:36Z")

</div>

Are you sure you're looking at the docs for the right version? Earlier versions don't support this API in quite the same way, see e.g. [https://www.elastic.co/guide/en/elasticsearch/reference/7.7/voting-config-exclusions.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.7/voting-config-exclusions.html).

---

<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 14, 2020, 3:26pm UTC](https://discuss.elastic.co/t/voting-exclusion-api-wrong-http-method/241638/3 "2020-08-14T15:26:44Z")

</div>

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