Automation and Programmability
An engineer wants to change the description of an existing interface through a REST API without creating a new resource. Which CRUD operation and matching HTTP verb apply?
Show the answer
Correct answerB. Update, using PUT or PATCH
AWhy not this: Create with POST adds a new resource, but the interface already exists.
BWhy this is right: Update modifies an existing resource, and PUT or PATCH are the verbs used for it.
CWhy not this: Read with GET only retrieves data and changes nothing on the device.
DWhy not this: Delete with DELETE removes the resource instead of altering its description.
Modifying an existing resource is the Update operation, which maps to PUT (replace) or PATCH (partial change). Create maps to POST and adds a new resource, which is not the goal here.