# \#request-body

**URL:** https://community.postman.com/tag/request-body/450.md

[Latest](https://community.postman.com/latest.md) · [Categories](https://community.postman.com/categories.md) · [Tags](https://community.postman.com/tags.md)

---

## ["Editor failed to load" and other Local Files issues](https://community.postman.com/t/editor-failed-to-load-and-other-local-files-issues/87032)

<div class="topic-metadata">

**Author:** [@gabriel-r](https://community.postman.com/u/gabriel-r)\
**Replies:** 3\
**Last updated:** [January 7, 2026, 10:26am UTC](https://community.postman.com/t/editor-failed-to-load-and-other-local-files-issues/87032 "2026-01-07T10:26:08Z")

</div>

Using the local files feature, and I want to believe, but it’s so buggy. The most annoying things: When starting, local collections and environments are just not there. If I simply switch to Cloud and back to Local vi…

---

## [Unable to paste into search bar in request](https://community.postman.com/t/unable-to-paste-into-search-bar-in-request/86210)

<div class="topic-metadata">

**Author:** [@powlinz](https://community.postman.com/u/powlinz)\
**Replies:** 3\
**Last updated:** [October 27, 2025, 1:09pm UTC](https://community.postman.com/t/unable-to-paste-into-search-bar-in-request/86210 "2025-10-27T13:09:44Z")

</div>

With the newer version we can’t paste texte into the search bar in the body of the request. The text is pasted into the body even if the focus is in the search bar. I’ve tested on a older version and the paste worked fi…

---

## [OAuth 2.0 Client Secret Capital "I" Rendered as Small "l" — Causes Unauthorized Error](https://community.postman.com/t/oauth-2-0-client-secret-capital-i-rendered-as-small-l-causes-unauthorized-error/81705)

<div class="topic-metadata">

**Author:** [@descent-module-geo24](https://community.postman.com/u/descent-module-geo24)\
**Replies:** 0\
**Last updated:** [June 30, 2025, 11:20am UTC](https://community.postman.com/t/oauth-2-0-client-secret-capital-i-rendered-as-small-l-causes-unauthorized-error/81705 "2025-06-30T11:20:21Z")

</div>

Hi community, I’m currently facing an unusual issue while configuring an OAuth 2.0 token request in Postman and hoping someone can shed some light on this. What I’m Doing I’m using the OAuth 2.0 Authorization method i…

---

## [How to modify the request payload for subsequent request](https://community.postman.com/t/how-to-modify-the-request-payload-for-subsequent-request/19563)

<div class="topic-metadata">

**Author:** [@sseenivasan89](https://community.postman.com/u/sseenivasan89)\
**Replies:** 0\
**Last updated:** [January 26, 2021, 1:17pm UTC](https://community.postman.com/t/how-to-modify-the-request-payload-for-subsequent-request/19563 "2021-01-26T13:17:26Z")

</div>

I am getting the response from request1 and I am storing that response in variable and want to send the response payload to my subsequent request2, but before that I want to modify the data in payload, please help to ach…

---

## [Using Post-request script to update/reset request body](https://community.postman.com/t/using-post-request-script-to-update-reset-request-body/68953)

<div class="topic-metadata">

**Author:** [@valentin.gauthier](https://community.postman.com/u/valentin.gauthier)\
**Replies:** 3\
**Last updated:** [September 30, 2024, 6:02pm UTC](https://community.postman.com/t/using-post-request-script-to-update-reset-request-body/68953 "2024-09-30T18:02:08Z")

</div>

Hello, I have a collection with 3 requests on which the user should loop to upload files on a server (1 iteration per file). One of my request has a “binary” body. To avoid errors if the user forgot to change the file …

---

## [Error in JSON body when variable is used without quotes](https://community.postman.com/t/error-in-json-body-when-variable-is-used-without-quotes/68910)

<div class="topic-metadata">

**Author:** [@eliemrad](https://community.postman.com/u/eliemrad)\
**Replies:** 1\
**Last updated:** [September 26, 2024, 11:29am UTC](https://community.postman.com/t/error-in-json-body-when-variable-is-used-without-quotes/68910 "2024-09-26T11:29:18Z")

</div>

I am trying to send a POST request with a JSON body where values are variables. All the variables that are surrounded by double quotes work fine. The ones that are not such as Numbers and Booleans are throwing errors. Th…

---

## [Assistance Required: 400 Bad Request Error When Requesting OAuth](https://community.postman.com/t/assistance-required-400-bad-request-error-when-requesting-oauth/65107)

<div class="topic-metadata">

**Author:** [@cesar-gordillo](https://community.postman.com/u/cesar-gordillo)\
**Replies:** 1\
**Last updated:** [August 6, 2024, 10:12am UTC](https://community.postman.com/t/assistance-required-400-bad-request-error-when-requesting-oauth/65107 "2024-08-06T10:12:18Z")

</div>

Hello, I am encountering an issue while trying to obtain an OAuth token using Postman. I am following the Coupa API documentation, but my request is returning a “400 Bad Request” error. I would appreciate your assistanc…

---

## [File is undefined in form data postman](https://community.postman.com/t/file-is-undefined-in-form-data-postman/60486)

<div class="topic-metadata">

**Author:** [@technical-physicist2](https://community.postman.com/u/technical-physicist2)\
**Replies:** 4\
**Last updated:** [May 2, 2024, 1:44pm UTC](https://community.postman.com/t/file-is-undefined-in-form-data-postman/60486 "2024-05-02T13:44:38Z")

</div>

The bug: file is undefined in form data postman. and sometimes i got this error “Form param file, file load error: PPERM: insecure file access outside working directory” from the postman’s console i’ve done 1. add…

---

## [Set request body to pass polygon coordinates(collection run)](https://community.postman.com/t/set-request-body-to-pass-polygon-coordinates-collection-run/59955)

<div class="topic-metadata">

**Author:** [@lucat10](https://community.postman.com/u/lucat10)\
**Replies:** 3\
**Last updated:** [April 30, 2024, 2:36pm UTC](https://community.postman.com/t/set-request-body-to-pass-polygon-coordinates-collection-run/59955 "2024-04-30T14:36:29Z")

</div>

Hi everyone, I’m in trouble with the setting of the “raw” body of a POST request. I wrote the raw request body like this { "Geodata":{ "dataset":\[ { "geoJson":{ "coordinate…

---

## [How does postman actually store request bodies?](https://community.postman.com/t/how-does-postman-actually-store-request-bodies/60037)

<div class="topic-metadata">

**Author:** [@tijmen1](https://community.postman.com/u/tijmen1)\
**Replies:** 0\
**Last updated:** [April 17, 2024, 9:25am UTC](https://community.postman.com/t/how-does-postman-actually-store-request-bodies/60037 "2024-04-17T09:25:33Z")

</div>

Hi! I’ve not used postman that often and don’t really know my way around. But I read a post that made me curious: Does Postman store request bodies and responses? How does postman actually store request bodies? I’d t…

---

## [Pre-Request Script Need Actual Body for Hashmac calculation](https://community.postman.com/t/pre-request-script-need-actual-body-for-hashmac-calculation/57022)

<div class="topic-metadata">

**Author:** [@jaie-chamsoft](https://community.postman.com/u/jaie-chamsoft)\
**Replies:** 6\
**Last updated:** [January 31, 2024, 4:16am UTC](https://community.postman.com/t/pre-request-script-need-actual-body-for-hashmac-calculation/57022 "2024-01-31T04:16:09Z")

</div>

Hey All, I have googled and looked for this answer but been unable to find what I need During the pre-request script I do a hashmac calculation which requires the body to actually match what postman sends. This is nor…

---

## [Need to add 2 years to ISO Timestamp to be used in request](https://community.postman.com/t/need-to-add-2-years-to-iso-timestamp-to-be-used-in-request/56050)

<div class="topic-metadata">

**Author:** [@adinduik](https://community.postman.com/u/adinduik)\
**Replies:** 1\
**Last updated:** [January 5, 2024, 4:11pm UTC](https://community.postman.com/t/need-to-add-2-years-to-iso-timestamp-to-be-used-in-request/56050 "2024-01-05T16:11:01Z")

</div>

I need to be able to add two years to my iso timestamp for my request body I have this in my pre-request script pm.collectionVariables.set(“timestamp”, pm.variables.replaceIn(‘{{$isoTimestamp}}’)); I need the timestam…

---

## [How to send a POST request with binary data as request body?](https://community.postman.com/t/how-to-send-a-post-request-with-binary-data-as-request-body/52776)

<div class="topic-metadata">

**Author:** [@rb12121](https://community.postman.com/u/rb12121)\
**Replies:** 4\
**Last updated:** [October 5, 2023, 9:34am UTC](https://community.postman.com/t/how-to-send-a-post-request-with-binary-data-as-request-body/52776 "2023-10-05T09:34:13Z")

</div>

Hi, I can send a POST request using binary data as a response body successfully using the normal POST request but I wanted to replicate the same behavior using the pre-request script. The only thing I am struggling wit…

---

## [PropertyList is not defined in pre-request script](https://community.postman.com/t/propertylist-is-not-defined-in-pre-request-script/51239)

<div class="topic-metadata">

**Author:** [@ataul](https://community.postman.com/u/ataul)\
**Replies:** 3\
**Last updated:** [September 1, 2023, 9:13am UTC](https://community.postman.com/t/propertylist-is-not-defined-in-pre-request-script/51239 "2023-09-01T09:13:38Z")

</div>

Hi folks, I’m trying to emulate the behavior of Ruby’s encode\_www\_form in a pre-release script. (If there’s a quick way to do this, I’d appreciate that, but otherwise, this is the issue I’m currently facing:) pm.request…

---

## [Array in requestBody duplicates array indexes](https://community.postman.com/t/array-in-requestbody-duplicates-array-indexes/51019)

<div class="topic-metadata">

**Author:** [@rjs](https://community.postman.com/u/rjs)\
**Replies:** 0\
**Last updated:** [August 27, 2023, 2:25pm UTC](https://community.postman.com/t/array-in-requestbody-duplicates-array-indexes/51019 "2023-08-27T14:25:54Z")

</div>

Hi all, After creating a new API in PM (see JSON code) and Add Collection → Generate from definition the requestBody duplicates the proparray indexes and deleted array is not printed. When importing same file to Swagge…

---

## [How can I create a dynamic requestbody using a pre-requisite script?](https://community.postman.com/t/how-can-i-create-a-dynamic-requestbody-using-a-pre-requisite-script/50611)

<div class="topic-metadata">

**Author:** [@sergeasmar](https://community.postman.com/u/sergeasmar)\
**Replies:** 1\
**Last updated:** [August 16, 2023, 11:00am UTC](https://community.postman.com/t/how-can-i-create-a-dynamic-requestbody-using-a-pre-requisite-script/50611 "2023-08-16T11:00:33Z")

</div>

I want to create a dynamic requestbody through a pre-requisite script. I want that script to extract the headers from the csv datafile and add them to the requestbody. I want to do this so that my code can be as reusable…

---

## [How to put graphql Query into the Unirest request body when you change it to Code snippet using Unirest](https://community.postman.com/t/how-to-put-graphql-query-into-the-unirest-request-body-when-you-change-it-to-code-snippet-using-unirest/46977)

<div class="topic-metadata">

**Author:** [@science-participant](https://community.postman.com/u/science-participant)\
**Replies:** 0\
**Last updated:** [May 2, 2023, 12:09am UTC](https://community.postman.com/t/how-to-put-graphql-query-into-the-unirest-request-body-when-you-change-it-to-code-snippet-using-unirest/46977 "2023-05-02T00:09:17Z")

</div>

Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic. Here’s an outline with best practices for making your…

---

## [How to know response body without request](https://community.postman.com/t/how-to-know-response-body-without-request/45348)

<div class="topic-metadata">

**Author:** [@science-meteorologi6](https://community.postman.com/u/science-meteorologi6)\
**Replies:** 0\
**Last updated:** [March 20, 2023, 12:48pm UTC](https://community.postman.com/t/how-to-know-response-body-without-request/45348 "2023-03-20T12:48:29Z")

</div>

Im wonder if it is possible to get body of responose from Success Example and compare it with the response. Or is there another way to know a response body without sending the request. Can you send me some examples? I…

---

## [Filter response to only include some fields and put in a flow!](https://community.postman.com/t/filter-response-to-only-include-some-fields-and-put-in-a-flow/38295)

<div class="topic-metadata">

**Author:** [@davebaker87](https://community.postman.com/u/davebaker87)\
**Replies:** 8\
**Last updated:** [August 25, 2022, 7:58pm UTC](https://community.postman.com/t/filter-response-to-only-include-some-fields-and-put-in-a-flow/38295 "2022-08-25T19:58:37Z")

</div>

I am trying to automate some awkward tasks for work. One of which is query multiple endpoints to get the backup status of an appliance, parse the body response so I just see a datestamp + success/failure result. I’d lik…

---

## [How do I access request body in pre-request test script with values assigned to variables in request body?](https://community.postman.com/t/how-do-i-access-request-body-in-pre-request-test-script-with-values-assigned-to-variables-in-request-body/30451)

<div class="topic-metadata">

**Author:** [@crescent-sushant](https://community.postman.com/u/crescent-sushant)\
**Replies:** 1\
**Last updated:** [December 8, 2021, 3:11pm UTC](https://community.postman.com/t/how-do-i-access-request-body-in-pre-request-test-script-with-values-assigned-to-variables-in-request-body/30451 "2021-12-08T15:11:32Z")

</div>

How do I access request body in pre-request test script with values assigned to variables in request body? right now when I do: var body = pm.request.body.raw; console.info(“request body:”+body ); In console I see: …

---

## [Csv data to json object in 1 iteration](https://community.postman.com/t/csv-data-to-json-object-in-1-iteration/19928)

<div class="topic-metadata">

**Author:** [@mariampostwoman](https://community.postman.com/u/mariampostwoman)\
**Replies:** 0\
**Last updated:** [February 3, 2021, 10:54am UTC](https://community.postman.com/t/csv-data-to-json-object-in-1-iteration/19928 "2021-02-03T10:54:53Z")

</div>

I need to send a post request where the body of my schema has the following format with fixed data, arrays and objects: { “Ownerid”: “JohnDoe”, “Animal” : “Cat”, “Breeds”: \[ { “Breed”: “Siamese”, “Color”:“Brown” }…

---

## [How to combine several json bodies with same structure but different values in 1 request](https://community.postman.com/t/how-to-combine-several-json-bodies-with-same-structure-but-different-values-in-1-request/19691)

<div class="topic-metadata">

**Author:** [@orbital-module-sagan](https://community.postman.com/u/orbital-module-sagan)\
**Replies:** 10\
**Last updated:** [January 30, 2021, 2:45pm UTC](https://community.postman.com/t/how-to-combine-several-json-bodies-with-same-structure-but-different-values-in-1-request/19691 "2021-01-30T14:45:24Z")

</div>

Hello community, I was trying to find a solution of combining several json bodies with same structure but different values in 1 request. Please find the example below. Obviously this is a bad request. But I’m curio…

---

## [How to sort JSON request body keys including nested objects in alphabetical order and then stringify that object?](https://community.postman.com/t/how-to-sort-json-request-body-keys-including-nested-objects-in-alphabetical-order-and-then-stringify-that-object/17088)

<div class="topic-metadata">

**Author:** [@konsta.2106](https://community.postman.com/u/konsta.2106)\
**Replies:** 4\
**Last updated:** [October 26, 2020, 2:23pm UTC](https://community.postman.com/t/how-to-sort-json-request-body-keys-including-nested-objects-in-alphabetical-order-and-then-stringify-that-object/17088 "2020-10-26T14:23:32Z")

</div>

Hello. I need an option in the Pre-request Script to sort my JSON request body keys alphabetically and also that should be done with nested objects and then stringify that object. Only and only the keys (not values, ar…
