nerdexam
Cisco

200-901 · Question #677

An engineer creates a script that makes calls to the Cisco Webex API to create a new room and then add users to the room. The engineer runs the script and receives an HTTP response with status code…

The correct answer is A. response body. The HTTP response body contains the payload data returned by the API, including resource attributes like room title and ID needed to compose the notification email.

Understanding and Using APIs

Question

An engineer creates a script that makes calls to the Cisco Webex API to create a new room and then add users to the room. The engineer runs the script and receives an HTTP response with status code 200. The engineer wants to make an enhancement to the script to send an email to the added users that includes the title and ID of the room. Which part of the HTTP response contains the additional information?

Options

  • Aresponse body
  • Bresponse header
  • Cresponse content-type
  • Dresponse status code

How the community answered

(26 responses)
  • A
    88% (23)
  • B
    8% (2)
  • C
    4% (1)

Why each option

The HTTP response body contains the payload data returned by the API, including resource attributes like room title and ID needed to compose the notification email.

Aresponse bodyCorrect

When the Cisco Webex API successfully creates a room and returns HTTP 200, the response body contains the JSON representation of the created room resource, including fields such as the room title and room ID. The engineer parses this response body to extract those specific values and include them in the notification email sent to added users. The response body is the standard location for API-returned resource data in REST APIs.

Bresponse header

The response header contains metadata about the response such as Content-Type, rate limit information, and request tracking IDs - not resource-specific data like room title or ID.

Cresponse content-type

Content-Type is a single response header field indicating the media type of the body (such as application/json) and contains no room-specific resource data.

Dresponse status code

The response status code (200) only signals the outcome of the request and carries no resource-specific information such as room title or ID.

Concept tested: HTTP response body as source of API resource data

Source: https://developer.webex.com/docs/api/v1/rooms/create-a-room

Topics

#HTTP Response Body#API Data Retrieval#Webex API

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice