When calling an API that has a request body (such as POST or PUT requests) - it is required to set the Content-Type and Content-Length headers.
The Content-Type header should be set to application/xml when sending XML requests, and the Content-Length should be set to the length of the request body in octets.