Challenge: Update an Order

Challenge yourself by writing a test to update an order.

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:

Press + to interact
{
"success": boolean,
"data": {
"description": "string",
}
}

When we send a request, we must include the properties ...

Access this course and 1400+ top-rated courses and projects.