Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

Postman Tutorial Part 10 – Sending PATCH Request in Postman

Posted on 04/23/2025 By admin

Hello Folks,

As part of our API Testing series, we will see “Sending PATCH request in Postman”.

First of all we need some APIs to test. There are many public APIs available which you can use for testing purpose. I will suggest you to register at below site to use free APIs for testing:

GoRest API for Testing

Above website provides you APIs for basic operations i.e. CRUD which we have already learnt in previous posts.

I will keep sharing links of public APIs for testing.

We have already covered about:

Sending GET request in Postman

Sending POST request in Postman

Sending PUT request in Postman

In this post we will going to learn sending a PATCH request through Postman.

PATCH HTTP method:

An HTTP PATCH method is used to update information partially or completely (May be) of already existing resource at server and produces a new version of resource with updated information. It is different from PUT as PUT updates/replace complete information of resource while PATCH updates  some information of resource. It returns  200 (OK) and 204 (No Content) status code. 

A PATCH method is not safe method as it operations on modification of data. It is also non-idempotent but can be made idempotent.

To perform a PATCH request below steps are performed:

  1. Select the “PATCH” in http methods drop down.
  2. Pass the request URI in address bar of Postman.
  3. Pass request body in desired format under Body tab.
  4. Add authorization if applicable.
  5. Add headers if applicable.
  6. Click on Send button.

URI and request body we can get from above website. In real time, developer will provide you all these details.

URI –https://gorest.co.in/public-api/users/{userID}

GoRest provide you a PUT API to update user details and you need to pass userID in URI itself. We will be updating details of user with id 1158. You can get valid user id by hitting a GET request. So our final URI for PUT will be:

URI –https://gorest.co.in/public-api/users/1158

For above URI, we will send below payload :

{
"email":"[email protected]" 
}

1.Select the “PATCH” in http methods drop down, pass PATCH URI in address bar and copy request body under “Body” tab. You can see all these steps in details in previous post.

2. To hit PATCH request, you need to pass authorisation. You need to pass access token for GoREST APIs. You need to sign up and go to profile to get access token as shown below:

3. Go to “Authorization” tab and select “OAuth 2.0” in “Type” drop down. Paste copied access token in “Access Token” text box.

4. Hit the “Send” button. You can see response in “Body” tab of Response section of Postman. (Bottom part). Response in JSON format and it gives you updated details about user.

More about API Testing in upcoming posts. Stay tuned.

If you have any doubt, feel free to comment below.If you like my posts, please like, comment, share and subscribe.#ThanksForReading

#HappyApiTesting

Uncategorized

Post navigation

Previous Post: TestNG Tutorials 64: Dependency in TestNG – ignoreMissingDependencies – Another Way of Achieving Soft Dependencies
Next Post: API Testing

Related Posts

November 3, 2018 – Make Selenium Easy Uncategorized
access token Uncategorized
TestNG Tutorials 53: DataProvider in TestNG – Is It Mandatory To Have Return Type as Object in DataProvider Method Uncategorized
March 21, 2019 – Make Selenium Easy Uncategorized
RunAsTestNgTest – Make Selenium Easy Uncategorized
July 30, 2019 – Make Selenium Easy Uncategorized

Recent Posts

  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing
  • Baby Steps To Become Efficient Selenium-Java Automation Tester
  • Features of Selenium 4.0.0 Release – Java Binding
  • Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Recent Comments

No comments to show.

Archives

  • April 2026
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • December 2023
  • October 2023
  • August 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • May 2022
  • March 2022
  • October 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • January 2018

Categories

  • Getting Started
  • Uncategorized

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark