REST API reference and samples
Find documentation on MSDN about the SharePoint 2013 representational state transfer (REST) interface.
This page contains links to commonly used REST resources that are available for SharePoint 2013 developers.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
In this article
SharePoint 2013 REST reference
SharePoint 2013 REST overviews
SharePoint 2013 REST code samples
Additional resources
Watch the video: SharePoint 2013 REST and OData fundamentals
Tip
The SharePoint Online REST service supports combining multiple requests into a single call to the service by using the OData $batch query option. For details and links to code samples, see Make batch requests with the REST APIs. This option is not yet supported for on-premise SharePoint.
SharePoint 2013 REST reference
Note
Some of the following links open to the documentation for the corresponding JavaScript object, which displays the REST endpoint at the bottom of the page.
REST core endpoints
Resource |
Description |
---|---|
Represents a collection of SP.Change objects. |
|
Represents a collection of EventReceiverDefinition objects that are used to enumerate a list of registered event receivers for Microsoft SharePoint Foundation objects. |
|
Represents a collection of SP.Feature objects. |
|
Represents an activated feature. |
|
Represents a collection of SP.RecycleBinItem objects. |
|
Represents a Recycle Bin item in the Recycle Bin of a site or a site collection. |
|
Represents regional settings that are used on the server that is running Microsoft SharePoint Foundation. |
|
Represents a collection of sites in a Web application, including a top-level Web site and all its subsites. |
|
Represents a SharePoint site. |
|
Specifies a collection of site templates. |
|
Specifies a site definition or a site template that is used to instantiate a site. |
REST list-related endpoints
Resource |
Description |
---|---|
Represents a collection of List resources. |
|
Represents a list on a SharePoint Web site. |
|
Represents a collection of ListItem resources. |
|
Represents an item or row in a list. |
|
Represents a collection of Web site or list content types. |
|
Represents a website, or list, content type. |
|
Represents a collection of Field resources. |
|
Represents a field in a list on a Microsoft SharePoint Foundation Web site. |
|
Represents a collection of SP.FieldLink objects that are column or field references in a content type. |
|
Specifies a reference to a field or field definition for a content type. |
|
Represents a collection of SP.Form objects for a list. |
|
A form provides a display and editing interface for a single list item. |
|
Represents a collection of SP.ListTemplate objects. |
|
Specifies a list template. |
|
Represents a collection of SP.RelatedField objects storing properties of relationship lookup fields. |
|
Specifies a relationship to a lookup field. |
|
Represents a collection of View resources. |
|
Specifies a list view. |
|
Represents a collection of fields in a list view. |
REST endpoints for files and folders
Resource |
Description |
---|---|
Represents a collection of File resources. |
|
Represents a file in a SharePoint Web site that can be a Web Part Page, an item in a document library, or a file in a folder. |
|
Represents a collection of FileVersion resources. |
|
Represents a version of an File resource. |
|
Represents a collection of Folder resources. |
|
Represents a folder on a SharePoint Web site. |
REST endpoints for users and groups
Resource |
Description |
---|---|
Represents a collection of Group resources. |
|
Represents a group on a Microsoft SharePoint Foundation website. |
|
Represents a collection of RoleAssignment resources that defines all the role assignments for a securable object. |
|
Defines the securable object role assignments for a user or group on the Web site, list, or list item. |
|
Represents the collection of RoleDefinition resources which define the role definitions that are available for use within the site. |
|
Defines a single role definition, including a name, description, and set of rights. |
|
Defines the role definitions that are bound to a role assignment object. |
|
Represents a collection of User resources. |
|
Represents a user in Microsoft SharePoint Foundation. |
|
Represents a collection of UserCustomAction resources. |
|
Represents a custom action associated with a SharePoint list, Web site, or subsite. |
REST complex types
Resource |
Description |
---|---|
Represents an app license for the specified user for the specified SharePoint Add-in. |
|
The configuration associated with an app principal. |
|
Represents a reference to a credential for an app principal. |
|
Represents base permissions for a role definition. |
|
Specifies a Collaborative Application Markup Language (CAML) query on a list or joined lists. |
|
Represents the input parameter of the GetListItemChangesSinceToken method. |
|
Defines a query that is performed against the change log. |
|
Represents the unique sequential location of a change within the change log. |
|
Specifies properties that are used as parameters to initialize a new content type. |
|
Represents the content type identifier (ID) of a content type. |
|
The context information for a site. |
|
Represents information about a document library. |
|
Specifies event receiver creation information. |
|
Represents the object that encapsulates all parameters used to create a new external app principal. |
|
Represents the value of the calculated field of a list item when the value of the field is a calculation error, such as division by zero or overflow. |
|
Represents properties that can be set when creating a field. |
|
Represents altitude, latitude, longitude and measure values for a geolocation field. |
|
Specifies the value of a lookup for a field within a list item. |
|
Represents a specific sub question and answer within a rating scale field of a list item. |
|
Specifies the hyperlink and the description values for FieldURL. |
|
Represents the value of a user field for a list item. |
|
Represents properties that can be set when creating a file by using the FileCollection.Add method. |
|
An object used to facilitate creation of a cross-site group. |
|
Represents a dictionary of key and value pairs. |
|
Represents a natural language used within the context of Microsoft SharePoint Foundation. |
|
Represents information associated with a connection to an external data source. |
|
The exception that is thrown when the data for a list field or list item fails validation. |
|
Describes a specific validation failure when a list item is inserted or updated. |
|
Specifies the information required to get the next page of data for a list view. |
|
Specifies the properties of the new list item. |
|
Represents properties of a list item field and its value. |
|
Represents a navigation node in the navigation hierarchy. A navigation hierarchy is a tree structure of navigation nodes. |
|
Represents the menu state of the default SiteMapProvider ("SPSiteMapProvider") where the dump starts at the site's root node with a depth of 10 levels. |
|
Describes a new navigation node to be created. |
|
Represents the parameters to use to render list data as a JavaScript Object Notation (JSON) string. |
|
Contains properties that are used as parameters to initialize a role definition. |
|
Represents a row in a data table. |
|
Represents a data table. |
|
Represents information about a time zone. |
|
Represents the site collection upgrade information. |
|
Provides fields that are used to access information about site collection usage. |
|
Parameters to invite a user. |
|
Represents an identity provider’s unique identifier information. |
|
Specifies the properties used to create a new list view. |
|
Specifies the properties of a new site. |
|
Represents metadata about site creation. |
|
Represents the data from the caller needed to make the outbound web request. |
|
Contains a copy of the third-party service response. |
|
Represents properties that can be set when creating a field. |
SharePoint 2013 REST overviews
Resource |
Description |
---|---|
Get the basics of using the SharePoint 2013 REST service to access and update SharePoint data, using the REST and OData web protocol standards. |
|
Complete basic operations using SharePoint 2013 REST endpoints |
Learn how to perform basic CRUD operations with the SharePoint 2013 REST interface. |
Add search functionality to client and mobile applications using the Search REST service in SharePoint Server 2013 and any technology that supports REST web requests. |
|
Learn about SharePoint 2013 REST endpoints for user PeopleManager, ProfileLoader, UserProfile, and related resources. |
|
Learn about SharePoint 2013 REST endpoints for feed-related tasks. |
|
Following people and content REST API reference for SharePoint 2013 |
Learn about SharePoint 2013 REST endpoints for following people and content. |
SharePoint 2013 REST code samples
Resource |
Description |
---|---|
Learn how to create a basic "hello world" provider-hosted SharePoint Add-in that uses the SharePoint REST interface to read information about a SharePoint 2013 site from a remote web application. |
|
SharePoint 2013: Using the search REST service from an app for SharePoint |
Learn how to submit a search query to Search in SharePoint 2013 from within an SharePoint Add-in. |
SharePoint 2013: Build REST queries and use REST to traverse a site |
Learn how to use the SharePoint REST APIs to traverse a SharePoint 2013 site, and to create an app that builds queries that perform basic data operations on basic SharePoint entities that are exposed at REST endpoints. |
SharePoint 2013: Perform basic data access operations by using REST in apps |
Learn how to use the SharePoint REST APIs to perform basic data access operations on SharePoint 2013 lists and list items. |
SharePoint 2013: Perform basic data operations on files and folders using REST |
A code sample using REST and the SharePointJavaScript cross-domain library to perform basic operations on document libraries and files. |
SharePoint 2013: Make app-only policy type calls in a remote app (REST) |
Learn how to use the AllowAppOnlyPolicy attribute, with REST and OAuth, to call back into SharePoint 2013. |
Learn how to create an SharePoint Add-in that will use RESTful URLs to query and manipulate data in an external list. |
|
SharePoint 2013: Use the chrome control and the cross-domain library (REST) |
Learn how to include a remote webpage that hosts the chrome control and retrieves information from the host web by using the cross-domain library and REST in SharePoint 2013. |
SharePoint 2013: Get list items by using the cross-domain library (REST) |
Learn how to use the cross-domain library in SharePoint Add-ins to read items in a list hosted in the app web. |
SharePoint 2013: Get the host web title using the cross-domain library (REST) |
Learn how to use the cross-domain library in SharePoint 2013 to read the title property of the host web. |
Set custom permissions on a list by using the REST interface |
Learn how to define custom, fine-grained permissions on a SharePoint list by using the REST interface and JavaScript. |