200-901 Question 92
Select 3As a developer, you are tasked with creating a script to manage a Webex space for your team. You want to accomplish the following: 1) Create a new Webex space, 2) Add three team members to the space, and 3) Post an introductory message in the space. Which Webex API endpoints will you use to achieve this task?
- A
POST /v1/rooms
- B
POST /v1/memberships
- C
POST /v1/messages
- D
GET /v1/rooms
- E
DELETE /v1/memberships
Show answer and explanation
Correct answers: A, B, C
Explanation
To manage spaces, participants, and messages in Webex, you need to use the appropriate Webex API endpoints. In this scenario, creating a space requires the POST /v1/rooms endpoint, adding participants requires the POST /v1/memberships endpoint, and sending messages to the space requires the POST /v1/messages endpoint. Other endpoints, such as GET /v1/rooms and DELETE /v1/memberships, are not relevant to the task described.
- A. Correct.
Correct. The POST /v1/rooms endpoint is used to create a new Webex space (room).
- B. Correct.
Correct. The POST /v1/memberships endpoint is used to add participants to a Webex space.
- C. Correct.
Correct. The POST /v1/messages endpoint is used to send a message to a Webex space.
- D. Incorrect.
Incorrect. The GET /v1/rooms endpoint retrieves a list of spaces but does not allow you to create a new space.
- E. Incorrect.
Incorrect. The DELETE /v1/memberships endpoint removes participants from a space, which is not part of the task.