Testing Invoice Category Update
Step 1: Create Request
- In the InvoiceGetAPI-Tests Collection, click the "+" button to create a new request.

- Name the request:
Update Invoice Tags.

- Select the PATCH method.

Go to API Gateway and select the API: GetInvoiceAPI.
Navigate to the Stages section.
Click the "+" button to reveal the /invoice/tags/{id} endpoint path as shown below:

- Select the PATCH method and copy the Invoke URL.

- Paste the Invoke URL into Postman as follows:

- Replace
{id} in the API endpoint with an actual Invoice ID from DynamoDB:
https://x4uqolxky6.execute-api.us-east-1.amazonaws.com/dev/invoice/tags/<InvoiceId_from_DynamoDB>

- Go to the Body tab → Select raw → Choose JSON.

- Paste the following JSON code into Postman to update invoice categories:
{
"tags": ["VIP", "Urgent"]
}
- Click the Send button to view results.

- The response will appear as follows:

- Check the
Tags field in DynamoDB to verify the update.
