200-901 Understanding and Using APIs Practice Question
A developer is integrating a Python script with Cisco Webex Teams. The script must create a new space and then immediately post a message to that space. After the POST to /v1/rooms, the API returns HTTP 200 with a JSON body containing the new room's id. The script then needs to send a message. Which approach correctly uses the API response to post the message to the newly created room?
⚠ Common exam trap
The trap here is assuming that a human-readable field like the room title can serve as a unique identifier, when the API requires the system-generated id.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Extract the 'id' field from the JSON response and use it as the 'roomId' in a subsequent POST to /v1/messages.
When creating a resource via a REST API, the response typically includes the unique identifier of the new resource. For the Webex Teams API, the POST to /v1/rooms returns a JSON object with an 'id' field. To post a message to that room, the developer must pass that 'id' as the 'roomId' in the message creation request. This demonstrates understanding of API chaining and resource identification.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Parse the 'Link' header from the response and use its URL as the 'roomId' in a subsequent POST to /v1/messages.
Why it's wrong here
The 'Link' header is used for pagination in list responses, providing URLs for the next or previous page of results. It is not present in a create room response and does not contain the room's identifier. The room id is in the JSON body, not in a header. Using the Link header would fail because it is not provided and does not represent a room id.
- ✗
Use the HTTP status code 200 as the 'roomId' in a subsequent POST to /v1/messages.
Why it's wrong here
The HTTP status code indicates the result of the request (e.g., 200 OK) and does not identify the created resource. The 'roomId' must be the unique identifier returned in the response body. Using the status code would result in an invalid roomId and the message would not be posted to the intended room.
- ✗
Use the 'title' of the room as the 'roomId' in a subsequent POST to /v1/messages.
Why it's wrong here
The room title is a human-readable label and is not guaranteed to be unique. The Webex API requires the room's unique 'id' (a base64-encoded string) to route the message correctly. Using the title would cause the API to return an error or post to the wrong room if multiple rooms share the same title. Always use the 'id' field.
- ✓
Extract the 'id' field from the JSON response and use it as the 'roomId' in a subsequent POST to /v1/messages.
Why this is correct
The Webex Teams API returns the unique room identifier in the 'id' field of the JSON response. To post a message to that room, the developer must include that id as the 'roomId' parameter in the POST body to /v1/messages. This is the standard pattern for chaining API calls, where one response supplies the necessary identifier for the next request.
Go deeper
Related to this question
About these practice questions
One of 975 original 200-901 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Cisco exam blueprint
This 200-901 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-901 exam.