REST API methods that require data in the body of the request pass the data as an XML block. In addition, many API methods return data in the response using an XML block.

The schema for the XML used in requests and response is available in a schema (.xsd) file. When you construct XML for a request, you must make sure that the XML block is well formed and that it conforms to the schema. For many programming frameworks, you can generate code from the .xsd file that maps XML elements and attributes to objects and properties. You can use this code to help you create XML blocks using typed code, and to deserialize and serialize data from REST API requests and responses.

Getting the schema file

You can download the schema as an .xsd file from the following locations:

For more information about REST API versions and XML schema versions, see REST API and Resource Versions.

Thanks for your feedback!Your feedback has been successfully submitted. Thank you!