QuestionQ413

Understanding and Using APIs

The API documentation specifies this requirement for a REST API request:

“For methods that accept request parameters, the platform accepts either application/json or application/x-www-form-urlencoded content types and currently supports returning data only in application/json format.”

Which field requests content in the required format?

  • A
  • B
  • C
  • D
Explanation

The Accept header communicates the media type wanted for the response. Specifying application/json requests the only supported returned format; its unspecified quality value defaults to the highest preference over the XML alternative.

Community Discussion

No comments yet. Be the first to start the discussion!