SP.Web.loadApp Method (sp.js)
Uploads an App package and creates an instance from it.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.Web.loadApp(appPackageStream, installationLocaleLCID)
Parameters
appPackageStream
The stream of app package.installationLocaleLCID
A 32-bit integer that specifies the locale in which the app package should be installed later.
Return value
SP.AppInstance
The created AppInstance.
Remarks
The site must be enabled for remote development. The app instance is initialized with a specified locale in which it will be installed later. The specified locale must be supported by the app package.
REST resource endpoint
See Web resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/loadApp(appPackageStream,installationLocaleLCID)
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/loadApp(appPackageStream,installationLocaleLCID)
Resource parameters
appPackageStream
installationLocaleLCID