A network administrator is developing an automation script to interact with a Cisco DNA Center REST API. The script needs to completely replace an existing network device interface configuration resource with a newly provided configuration payload. Which HTTP verb must the administrator use to perform this complete replacement operation?
- HTTP PUTAnswer
- BHTTP POST
- CHTTP GET
- DHTTP PATCH
Answer
HTTP PUT is the correct HTTP verb used to replace an existing REST API resource entirely with a new representation payload.
In REST-based network management APIs, HTTP PUT maps to the Update action in CRUD specifically for overwriting or completely replacing an existing target resource with the provided payload.
Step-by-Step Solution
Key Concept
RESTful API HTTP Verb to CRUD Mapping (PUT vs POST/PATCH)