SP.Web.loadAndInstallApp Method (sp.js)
Uploads and installs an app package to this site.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.Web.loadAndInstallApp()
Parameters
- appPackageStream
The stream of the app package.
Return value
SP.AppInstance
The instance of the created application.
Remarks
This site must be enabled for remote development.
REST resource endpoint
See Web resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/loadAndInstallApp(appPackageStream)
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/loadAndInstallApp(appPackageStream)
Resource parameters
- appPackageStream