Test /users/{userId} - PATCH method

  1. In the Resources section of the UsersAPI.

  2. Under /users resource’s {userId} resource, select POST method.

  3. Open the Test tab.

  4. In the Request body field, fill in:

    Replace the id value with the id of user created in previous step.

    {
      "id": "d1d2f263-9a93-408c-a836-c13e24fcebf6",
      "email": "tranvanan@gmail.com",
      "name": "Tran Van An"
    }
    

alt text

  1. Click Test.

  2. Verify that the update-user Lambda function is invoked successfully, and the response is the data of updated user.

alt text