# Exam Put vs POST

**URL:** <https://discuss.elastic.co/t/exam-put-vs-post/344954>\
**Category:** Kibana\
**Created:** [October 13, 2023, 12:50am UTC](https://discuss.elastic.co/t/exam-put-vs-post/344954 "2023-10-13T00:50:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Clairmont](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_clairmont/32/125860_2.png) [@Matt\_Clairmont](https://discuss.elastic.co/u/Matt_Clairmont)\
**Post date:** [October 13, 2023, 12:50am UTC](https://discuss.elastic.co/t/exam-put-vs-post/344954/1 "2023-10-13T00:50:52Z")

</div>

Hi, I've found myself getting a bit confused as to when the appropriate time to use a PUT vs POST when going about the labs. I'm noticing very subtle differences, primarily around server config state, but it seems that most operations are (relatively) interchangeable.

Does the exam care which you use? I'd rather catch a potential bad habit early on if it does indeed matter.

---

<div class="post-metadata">

**Author:** ![Priscilla\_Parodi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priscilla_parodi/32/43047_2.png) [@Priscilla\_Parodi](https://discuss.elastic.co/u/Priscilla_Parodi)\
**Post date:** [October 16, 2023, 10:24pm UTC](https://discuss.elastic.co/t/exam-put-vs-post/344954/2 "2023-10-16T22:24:05Z")

</div>

Hello @Matt_Clairmont,

This is a great answer to your question:

> [@When to use PUT versus POST?](https://discuss.elastic.co/t/when-to-use-put-versus-post/68550/2):
>
> It's all about REST semantics. POST basically that you are posting a request which is going to modify the server state. POST index/type { "foo": "bar" } will generate an \_id server side and will index the document with this \_id. PUT is used to send a resource to the server. PUT index/type/id { "foo": "bar" } will put or update a document named index/type/id in the server. Makes sense? More details here: [https://en.wikipedia.org/wiki/Representational\_state\_transfer](https://en.wikipedia.org/wiki/Representational_state_transfer)

- POST: auto-generation of ids
- PUT: specify an id

---

<div class="post-metadata">

**Author:** ![Matt\_Clairmont](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_clairmont/32/125860_2.png) [@Matt\_Clairmont](https://discuss.elastic.co/u/Matt_Clairmont)\
**Post date:** [October 16, 2023, 11:36pm UTC](https://discuss.elastic.co/t/exam-put-vs-post/344954/3 "2023-10-16T23:36:13Z")

</div>

Thanks for referring me to that post. I did come across it prior to posting my question, but it doesn't cover if the exam grades on the different/correct usage. I'm still figuring out how each is applied throughout the course since I seem to match the rest of the solution, but get the verb incorrect.

---

<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:** [November 13, 2023, 11:36pm UTC](https://discuss.elastic.co/t/exam-put-vs-post/344954/4 "2023-11-13T23:36:17Z")

</div>

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