nerdexam
Cisco

300-920 · Question #56

Drag and Drop Question Refer to the exhibit. Drag and drop the code on the snippet to add the user with email "[email protected]" as moderator of the space with the identifier "987654321". Answer:

The correct answer is POST; memberships; roomId; personEmail; true. This question tests the ability to construct a curl command for a REST API call by correctly interpreting API documentation and dragging the appropriate method, endpoint, and JSON body parameters.

Messaging

Question

Drag and Drop Question Refer to the exhibit. Drag and drop the code on the snippet to add the user with email "[email protected]" as moderator of the space with the identifier "987654321". Answer:

Exhibit

300-920 question #56 exhibit

Answer Area

Drag items

personEmailtruePOSTmembershipsroomId

Correct arrangement

  • POST
  • memberships
  • roomId
  • personEmail
  • true

Explanation

This question tests the ability to construct a curl command for a REST API call by correctly interpreting API documentation and dragging the appropriate method, endpoint, and JSON body parameters.

Approach. To correctly fill the blanks, the test-taker must cross-reference the curl command structure with the API documentation and the question's requirements.

  1. curl -X [blank]: The API documentation states the method is POST. Therefore, 'POST' should be dragged to this blank.
  2. https://api.ciscospark.com/v1/[blank]: The API documentation shows the endpoint path is /v1/memberships. Therefore, 'memberships' should be dragged to this blank.
  3. -data-raw '{" [blank] ": "987654321", ...: The question specifies adding a user to a 'space with the identifier "987654321"'. The API documentation lists roomId as the parameter for the room ID. Therefore, 'roomId' should be dragged to this blank.
  4. ... "[blank]": "[email protected]", ...: The question specifies adding the user with email "[email protected]". The API documentation lists personEmail as the parameter for the email address. Therefore, 'personEmail' should be dragged to this blank.
  5. ... "isModerator": [blank] }': The question specifies adding the user "as moderator". The API documentation shows isModerator is a boolean. To make the user a moderator, its value must be true. Therefore, 'true' should be dragged to this blank.

Common mistakes.

  • common_mistake. Common mistakes include misplacing the HTTP method (POST) or the endpoint resource (memberships) in the wrong blanks, not understanding the JSON structure for the request body, or incorrectly assigning values to the parameters. For instance, putting 'personEmail' where 'roomId' should be, or vice-versa, or forgetting that the question requires the user to be a moderator and thus providing a value other than 'true' for isModerator (e.g., omitting it or setting it to false if such options were available). Another mistake would be to confuse personID with personEmail if personID was a draggable option, which it is not in this specific question but is a common conceptual error.

Concept tested. Understanding and constructing RESTful API calls using the curl command-line tool, interpreting API documentation (HTTP methods, endpoints, request body parameters, and data types), and formulating JSON payloads for API requests.

Topics

#Webex Messaging API#Space Memberships#Moderator Role#API Payload Construction

Community Discussion

No community discussion yet for this question.

Full 300-920 Practice