200-301 · Question #641
Which REST method updates an object in the Cisco DNA Center Intent API?
The correct answer is D. PUT. The HTTP PUT method is the standard REST method used to update an existing object or resource in the Cisco DNA Center Intent API.
Question
Which REST method updates an object in the Cisco DNA Center Intent API?
Options
- ACHANGE
- BUPDATE
- CPOST
- DPUT
How the community answered
(62 responses)- A3% (2)
- B2% (1)
- C3% (2)
- D92% (57)
Why each option
The HTTP PUT method is the standard REST method used to update an existing object or resource in the Cisco DNA Center Intent API.
CHANGE is not a standard HTTP REST method recognized for resource manipulation.
UPDATE is not a standard HTTP REST method recognized for resource manipulation.
POST is typically used to create new resources, not to modify or replace existing ones.
The HTTP PUT method is typically used in RESTful APIs to update an existing resource or create a resource at a specific URI if it does not already exist, effectively replacing the entire resource with the payload provided. In the Cisco DNA Center Intent API, PUT is the designated method for updating an object.
Concept tested: REST API methods (PUT for update)
Source: https://developer.cisco.com/docs/dna-center/#!rest-api-principles/rest-api-principles
Topics
Community Discussion
No community discussion yet for this question.