# Unable to Save the request body for API

**URL:** <https://community.postman.com/t/unable-to-save-the-request-body-for-api/43816>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [February 10, 2023, 11:31am UTC](https://community.postman.com/t/unable-to-save-the-request-body-for-api/43816 "2023-02-10T11:31:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tushar37](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@tushar37](https://community.postman.com/u/tushar37)\
**Post date:** [February 10, 2023, 11:31am UTC](https://community.postman.com/t/unable-to-save-the-request-body-for-api/43816/1 "2023-02-10T11:31:25Z")

</div>

I’m unable to hit save button to save the request body

![save](https://us1.discourse-cdn.com/getpostman/original/3X/d/1/d10abd63ae37b01c2b73a4506fada17da2c7713a.png)

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [February 10, 2023, 11:40am UTC](https://community.postman.com/t/unable-to-save-the-request-body-for-api/43816/2 "2023-02-10T11:40:26Z")

</div>

That normally means there are no changes to save.

Make a slight change to the request body (you can change it back afterwards), does the save button become enabled then?

---

<div class="post-metadata">

**Author:** ![tushar37](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@tushar37](https://community.postman.com/u/tushar37)\
**Post date:** [February 10, 2023, 12:02pm UTC](https://community.postman.com/t/unable-to-save-the-request-body-for-api/43816/3 "2023-02-10T12:02:48Z")

</div>

Save button is enabled but not clickable, that why I’m unable to save request

---

<div class="post-metadata">

**Author:** ![tushar37](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@tushar37](https://community.postman.com/u/tushar37)\
**Post date:** [February 10, 2023, 12:07pm UTC](https://community.postman.com/t/unable-to-save-the-request-body-for-api/43816/4 "2023-02-10T12:07:56Z")

</div>

Also what needs to change in below test case as Test case is getting pASS even statues code is wrong  
pm.test(“Check if the response status is 200”, function () {  
var statusCode = pm.response.statusCode;  
if (statusCode === 0) {  
pm.expect(statusCode).to.equal(0);  
} else {  
console.log(“Response status is not 200”);  
}  
});

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [February 10, 2023, 3:07pm UTC](https://community.postman.com/t/unable-to-save-the-request-body-for-api/43816/5 "2023-02-10T15:07:47Z")

</div>

I can only suggest yet again to go through the Postman Learning Centre which has examples of checking the status code.

```auto
pm.test("Status code is 200", () => {
  pm.response.to.have.status(200);
});

```

I can’t fathom what you are trying to do with that IF statement. (It’s not needed).
