# Error 414 when posting/updating via API

**URL:** https://meta.discourse.org/t/error-414-when-posting-updating-via-api/98186
**Category:** Self-hosting
**Created:** [September 27, 2018, 9:30am UTC](https://meta.discourse.org/t/error-414-when-posting-updating-via-api/98186 "2018-09-27T09:30:47Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![marcozambi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcozambi/32/119505_2.png) [@marcozambi](https://meta.discourse.org/u/marcozambi)
#### Post date: [September 30, 2018, 9:40am UTC](https://meta.discourse.org/t/error-414-when-posting-updating-via-api/98186/7 "2018-09-30T09:40:31Z")

</div>

One last post - the error was caused by me, hence no change to the templates is needed, at all! 😑

I’m placing my API requests using the **requests** python library, and I was submitting the payload using parameter params=payload rather than data=payload, hence my oversized payload was handled in the “wrong” way.

I changed my call from this

```
r = requests.put(apiWebsite + '/posts/' + str(apiPost), params=payload)

```

to this

```
r = requests.put(apiWebsite + '/posts/' + str(apiPost), data=payload)

```

Sorry! 😊

---

_[View the full topic](https://meta.discourse.org/t/error-414-when-posting-updating-via-api/98186)._
