SP.ContentType.schemaXmlWithResourceTokens property (sp.js)

Gets a non-localized version of the XML schema that defines the content type.

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

var value =SP.ContentType.get_schemaXmlWithResourceTokens()

Return value

The XML schema that defines the content type.


A content type schema can be defined with resource tokens so that the same schema can be used for multiple languages. The SchemaXmlWithResourceTokens returns that version of the schema for a content type. To get a localized version of the schema, use the schemaXml property.

REST resource endpoint

Endpoint URI structure


HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeid)/schemaXmlWithResourceTokens

GET syntax

GET http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeid)/schemaXmlWithResourceTokens