Challenge: Update an Order
Explore how to update existing orders using the PUT api/orders endpoint in Postman. Learn to write test cases for both successful updates and error handling when order IDs are invalid. Gain hands-on experience importing JSON collections, managing variables, and executing tests in a live work order manager application.
We'll cover the following...
Overview
The PUT api/orders/{{id}} endpoint allows us to update the data for an existing order. We can update any existing details for the order besides date and id. When we make a request to the endpoint, the API responds with data including the updated properties for the order. For example, if we update the description value, the shape of the response would look similar to the following:
When we send a request, we must include the properties to update and the updated values in the ...