Support for the XML response format is deprecated from the Admin REST API
API
Effective June 01, 2022
Action required
Starting in version 2022-07, support for the XML response format and XML payloads in the Admin REST API is removed. Requests expecting an XML response will result in a 404. Requests that send an XML payload will result in a 415.