# How to make document example includes headers?

**URL:** <https://community.postman.com/t/how-to-make-document-example-includes-headers/32932>\
**Category:** Help Hub\
**Tags:** documentation, collections, json\
**Created:** [February 24, 2022, 5:40pm UTC](https://community.postman.com/t/how-to-make-document-example-includes-headers/32932 "2022-02-24T17:40:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joke\_Huang](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@Joke\_Huang](https://community.postman.com/u/Joke_Huang)\
**Post date:** [February 24, 2022, 5:40pm UTC](https://community.postman.com/t/how-to-make-document-example-includes-headers/32932/1 "2022-02-24T17:40:06Z")

</div>

I made a collection of requests (with response as example), now I need to generate document automatically by Postman. But in the generated doc, the request examples does not include headers such as `Content-Type: application/json`. I need to write header manually for each example so that will includes in the example. Is there any way to solve this problem better?

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [February 26, 2022, 9:10am UTC](https://community.postman.com/t/how-to-make-document-example-includes-headers/32932/2 "2022-02-26T09:10:30Z")

</div>

Hi @Joke_Huang

The only options I can see that would be of any use are, to add in the headers manually, or open the collection JSON file in Notepad++ and do a find and replace (as long as all the headers are empty and match your criteria).

In Notepad++ it would look like this;  
 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/d/d45097f7db065ebefbab5b65cc688cb11dbea90a.png)
