# View and Edit Raw Request before sending

**URL:** <https://community.postman.com/t/view-and-edit-raw-request-before-sending/8280>\
**Category:** Help Hub\
**Created:** [October 10, 2019, 6:05am UTC](https://community.postman.com/t/view-and-edit-raw-request-before-sending/8280 "2019-10-10T06:05:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [October 10, 2019, 6:26am UTC](https://community.postman.com/t/view-and-edit-raw-request-before-sending/8280/2 "2019-10-10T06:26:48Z")

</div>

Hey @Nona2

Welcome to the Postman community!! 🚀

This is similar to a previous question asked on a different thread - If you take a look through that you will hopefully get the details you need.

> [@Setting headers for entire collection/folder](https://community.postman.com/t/setting-headers-for-entire-collection-folder/708/14):
>
> As of 7.0.9 - You should be able to now do this in your Pre-request Scripts. You can use the following syntax: pm.request.headers.add({key: 'header\_name', value: 'header\_value' }) pm.request.headers.upsert({key: 'header\_name', value: 'header\_value' }) pm.request.headers.remove('header\_name') EDIT: Fork this collection to see how it works directly in Postman: [https://www.postman.com/postman/workspace/postman-answers/collection/9215231-ef055751-7385-45b4-a6f9-91bbd1c47fa5?ctx=documentation](https://www.postman.com/postman/workspace/postman-answers/collection/9215231-ef055751-7385-45b4-a6f9-91bbd1c47fa5?ctx=documentation)

You can find a little more information about the syntax to use in the `Pre-request Scripts` here:

> **[Process data and script workflows using Postman JavaScript objects | Postman...](https://learning.postman.com/docs/tests-and-scripts/write-scripts/postman-sandbox-api-reference/)**
>
> Postman is a collaboration platform for API development. Postman's features simplify each step of building an API and streamline collaboration so you can create better APIs—faster.

---

_[View the full topic](https://community.postman.com/t/view-and-edit-raw-request-before-sending/8280)._
