This documentation is archived and is not being maintained.

SP.List.schemaXml property (sp.js)

SharePoint 2013

Gets a value that specifies the list schema of the list.

Last modified: November 22, 2013

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.List.get_schemaXml ()

Type: String

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.

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 syntax

POST http://<sitecollection>/<site>/_api/web/lists(listid)/schemaXml

GET syntax

GET http://<sitecollection>/<site>/_api/web/lists(listid)/schemaXml
Show: