nerdexam
Cisco

300-910 · Question #86

Drag and drop the code snippets from the bottom onto the boxes in the code to send a notification to a Cisco Webex space named NOC that has an ID of ab12cd2. Not all options are used.

This question tests knowledge of the Cisco Webex REST API, specifically how to programmatically send a message (notification) to a Webex space (room) by its ID using an HTTP POST request.

Software Development and Design

Question

Drag and drop the code snippets from the bottom onto the boxes in the code to send a notification to a Cisco Webex space named NOC that has an ID of ab12cd2. Not all options are used.

Explanation

This question tests knowledge of the Cisco Webex REST API, specifically how to programmatically send a message (notification) to a Webex space (room) by its ID using an HTTP POST request.

Approach. The correct approach is to send an HTTP POST request to the Webex Messages API endpoint ('https://webexapis.com/v1/messages') with a JSON payload containing 'roomId' set to 'ab12cd2' (the target space ID) and a 'text' or 'markdown' field with the message body. The request must include an 'Authorization: Bearer <token>' header for authentication. The critical drag-and-drop choices would involve selecting the correct endpoint URL, the correct HTTP method (POST, not GET), the correct payload key ('roomId' rather than 'spaceId' or 'channelId'), and the correct room ID value 'ab12cd2'.

Concept tested. Cisco Webex REST API usage - specifically the POST /v1/messages endpoint, correct JSON payload structure (roomId field), Bearer token authentication, and distinguishing Webex API parameters from distractors like incorrect endpoint paths or wrong field names.

Reference. Cisco Webex for Developers REST API documentation: https://developer.webex.com/docs/api/v1/messages/create-a-message

Topics

#Cisco Webex API#API Interaction#Python Programming#Notifications

Community Discussion

No community discussion yet for this question.

Full 300-910 Practice