Skip to content

PATCH Endpoint

goldy4719 edited this page Apr 10, 2026 · 2 revisions

PATCH /update-metadata

Overview

Update the tags or description associated with an existing image.

Prerequisites

  • Valid JWT token
  • Request body must include:
    • userId
    • imageId
    • tags

Implementation / Steps

  1. Parse and validate the request body.
  2. Identify the target item using userId and imageId.
  3. Update the tags attribute in DynamoDB.
  4. Return a success response.

Key Takeaways

  • Tags are fully replaced, not appended.
  • Invalid payloads result in a 400 error.

Clone this wiki locally