# Using a Put give 200 response but no data inputted

**URL:** <https://community.postman.com/t/using-a-put-give-200-response-but-no-data-inputted/16554>\
**Category:** Help Hub\
**Tags:** collections\
**Created:** [October 7, 2020, 5:15pm UTC](https://community.postman.com/t/using-a-put-give-200-response-but-no-data-inputted/16554 "2020-10-07T17:15:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TL\_Arwen](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@TL\_Arwen](https://community.postman.com/u/TL_Arwen)\
**Post date:** [October 7, 2020, 5:15pm UTC](https://community.postman.com/t/using-a-put-give-200-response-but-no-data-inputted/16554/1 "2020-10-07T17:15:12Z")

</div>

I’m trying to input some data into our Cisco Meraki using Postman Runner with a CSV file. Using Put {{baseUrl}}/networks/{{networkId}}/groupPolicies/{{groupPolicyId}}

I have the BaseUrl, and network ID put into the environment. For group policy, I have a column in my CSV for that.

When I run the put from post man runner, I get a 200 ok response, but no data is being put into where it’s supposed to go. Also Below the actions, it says This request does not have any tests.

Help!

---

<div class="post-metadata">

**Author:** ![maricrisbonzo](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/maricrisbonzo/32/5878_2.png) [@maricrisbonzo](https://community.postman.com/u/maricrisbonzo)\
**Post date:** [October 8, 2020, 8:51am UTC](https://community.postman.com/t/using-a-put-give-200-response-but-no-data-inputted/16554/2 "2020-10-08T08:51:05Z")

</div>

Hi Arwen 🙋🏻‍♀️.

I was able to send a successful PUT request using a different API called Airtable. Maybe sharing what I did will help us troubleshoot this issue.

Here I go:

1. First, I made sure I was hitting the correct environment with the right variables and Bearer Token:  
**`https://api.airtable.com/v0/{{baseId}}/Types/{{recordId}}`**

It sounds like you’re passing in what you need to call [updateNetworkGroupPolicy](https://documenter.getpostman.com/view/7928889/SVmsVg6K#4f2a9d11-2e1d-48d6-aaca-a5740e465192), so I think you’re good here.

1. Then, I set my Headers to have the correct Content-Type for the Body I’m sending:  
**`Content-Type: application/json`**

🤔 What are you passing in for Content-Type?

1. Finally, I needed to make sure I was providing the properties required in the JSON Body:  
**`{"fields": {"Botanical Name": "TESTING 100"}}`**

From the [updateNetworkGroupPolicy](https://documenter.getpostman.com/view/7928889/SVmsVg6K#4f2a9d11-2e1d-48d6-aaca-a5740e465192) docs, it looks like the properties you need to pass in are **name** and **scheduling**. 👉🏼 Does your CSV file reflect that?

---

<div class="post-metadata">

**Author:** ![TL\_Arwen](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@TL\_Arwen](https://community.postman.com/u/TL_Arwen)\
**Post date:** [October 8, 2020, 2:08pm UTC](https://community.postman.com/t/using-a-put-give-200-response-but-no-data-inputted/16554/3 "2020-10-08T14:08:34Z")

</div>

Hi Maricrisbonzo,

The content type is correct. As for the headers, I have the following…  
comment policy protocol srcPort SrcCidr destPort destCidr SyslogEnabled  
These are the settings within that page that I’m trying to change.  
When I did a get of an existing policy with firewall rules, I got those same headers. This SHOULD work… I think… haha I REALLY don’t want to have to input almost 300 rules manually.

---

<div class="post-metadata">

**Author:** ![maricrisbonzo](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/maricrisbonzo/32/5878_2.png) [@maricrisbonzo](https://community.postman.com/u/maricrisbonzo)\
**Post date:** [October 11, 2020, 3:10am UTC](https://community.postman.com/t/using-a-put-give-200-response-but-no-data-inputted/16554/4 "2020-10-11T03:10:51Z")

</div>

I didn’t realize you were trying to use the [Postman Collection Runner](https://learning.postman.com/docs/running-collections/intro-to-collection-runs/).

Have you been able to successfully run a single PUT request? If not, I would try just to make sure the request even works. Also, can you please share the Response Body you’re getting?

Here’s what I did to successfully run 5 iterations of a PUT request via Postman Runner:

**Step 1.** Make sure the PUT request works:

 ![Screen Shot 2020-10-10 at 7.34.00 PM](https://us1.discourse-cdn.com/getpostman/original/3X/7/e/7ec0991c058f07997e6ce89fc11f028d04e6ca91.png)

Btw, in **Headers** I _only_ have **`Content-Type`** set to **`application/json`**. And in **Tests** I’m only checking whether or not the response status I get is 200:

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

```

If you look at the **Test Results** in the screenshot above, you’ll see that this test passed.

**Step 2.** Cool. Now that I know my PUT request works, I’m going to turn the values of **`name`** & **`job`** into _variables_. This way, Postman Runner will be able to map every row of `name` and `job` from my .csv file to these variables.

 ![Screen Shot 2020-10-10 at 7.54.39 PM](https://us1.discourse-cdn.com/getpostman/original/3X/4/e/4e5a69131b64572c468511d818bc5ce3e4fc247f.png)

My `.csv` file looks like this:  
 ![Screen Shot 2020-10-10 at 7.56.03 PM](https://us1.discourse-cdn.com/getpostman/original/3X/6/9/69f100c59505cb488910a05e36ab4780e37388fa.png)

**Step 3.** Now let’s use Postman Runner!

 ![Screen Shot 2020-10-10 at 7.59.04 PM](https://us1.discourse-cdn.com/getpostman/original/3X/1/6/16a9eb77f9913360bdf2e6dfcf4c2bbe8f1316fb.png)

Awesome, every PUT request received a 200 response status:

 ![Screen Shot 2020-10-10 at 7.59.48 PM](https://us1.discourse-cdn.com/getpostman/original/3X/f/0/f018d244bec0027877e1553f757e2e2d264dfe4f.png)

And if we look at the **Response Body** of one of the logs in our Console, we’ll see that the information we were hoping to update was indeed updated:

 ![Screen Shot 2020-10-10 at 8.02.33 PM](https://us1.discourse-cdn.com/getpostman/original/3X/4/8/48e9796b5fbfc5c5ffb96be52c2338f4ec4ac53b.png)

Btw, I learned about these steps from [this video](https://www.youtube.com/watch?v=ZFPmt0ErIdk) by [The Testing Academy](https://www.youtube.com/channel/UC2TpiJFaC0f4_5GopyMkDdQ) 🤓.

---

<div class="post-metadata">

**Author:** ![TL\_Arwen](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@TL\_Arwen](https://community.postman.com/u/TL_Arwen)\
**Post date:** [October 13, 2020, 2:08pm UTC](https://community.postman.com/t/using-a-put-give-200-response-but-no-data-inputted/16554/5 "2020-10-13T14:08:44Z")

</div>

I was able to get everything imported, but I had to convert the CSV to JSON format and not use runner. Which is a little unfortunate, but it is what it is.
