# Adding in a specific field in the request body

**URL:** <https://community.postman.com/t/adding-in-a-specific-field-in-the-request-body/27363>\
**Category:** Help Hub\
**Tags:** tests, help, pre-request-script\
**Created:** [September 1, 2021, 8:35am UTC](https://community.postman.com/t/adding-in-a-specific-field-in-the-request-body/27363 "2021-09-01T08:35:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ByDennis](https://avatars.discourse-cdn.com/v4/letter/b/58f4c7/32.png) [@ByDennis](https://community.postman.com/u/ByDennis)\
**Post date:** [September 1, 2021, 8:35am UTC](https://community.postman.com/t/adding-in-a-specific-field-in-the-request-body/27363/1 "2021-09-01T08:35:13Z")

</div>

I want to add later to a field in JSON request body, but I was not successful, how can I do it?  
body :{  
“payment”: {  
“type”: “debit”,  
“detail”: {}  
}  
}  
console.log(\_.get(JSON.parse(pm.request.body.raw),‘payment.detail’)); //I can reach the area I want.  
let body = {  
mode: ‘raw’,  
raw:  
JSON.stringify({  
accType: ‘Iban’,  
accNo: ‘{{$randomBankAccountIban}}’,  
person: ‘{{$randomFirstName}} {{$randomLastName}}’,  
bank: ‘{{$randomCity}}’  
}),  
options: {  
raw: {  
language: ‘json’  
}  
}  
}  
pm.request.body.update(body);
