Which HTTP method should a custom extension use to update an existing resource in a REST API?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Todd Lammle: 'Imagine you're building a chatbot and this exact situation comes up — put or patch is your go-to move. PUT replaces an entire resource; PATCH applies a partial update; both are correct for updating existing resources. This is a classic Domain 6: Build Back-End Integrations concept you'll want locked in before exam day.'
Full explanation below image
Full Explanation
PUT replaces an entire resource; PATCH applies a partial update; both are correct for updating existing resources. GET retrieves data without modification. POST creates new resources. DELETE removes resources. The correct answer, "PUT or PATCH", directly satisfies the scenario because it aligns with watsonx Assistant's design principles and the specific capability being tested. The incorrect options ("GET", "POST", "DELETE") may appear relevant but each misses a key requirement or introduces a step that is either unnecessary or belongs to a different workflow. Mastering the distinction between these approaches is essential for effective watsonx Assistant implementations and is a core focus of the Domain 6: Build Back-End Integrations section of the certification exam.