SP.List.schemaXml property (sp.js)
Gets a value that specifies the list schema of the list.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.List.get_schemaXml ()
Return value
Type: String
Remarks
It must not be null. It must not be empty. It must be an XML document that conforms to the ListDefinition type. A field definition describes the structure and format of a field that is used within a list or content type.
REST resource endpoint
See List resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/lists(listid)/schemaXml
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/lists(listid)/schemaXml
GET syntax
GET http://<sitecollection>/<site>/_api/web/lists(listid)/schemaXml