QuestionQ57

VerifiedDesign and implement API-led integrations

Refer to the exhibits.

The web client sends a POST request to the ACME Orders API containing an XML payload, and an error is returned. What must be changed in the request for the web client to receive a successful response code?

Question Image

Explanation

The request body is defined to accept application/xml, so the client must send a Content-Type: application/xml request header. A Content-Type request header identifies the media type of the submitted POST body; sending multipart/mixed for an XML-only API body causes the server to reject it with 415 Unsupported Media Type.

Learn more

Community Discussion

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