SP.Web.loadAndInstallAppInSpecifiedLocale Method (sp.js)

Uploads and installs an App package on the site in a specified locale.

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

SP.Web.loadAndInstallAppInSpecifiedLocale(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.

Return value

SP.AppInstance

The created AppInstance.

Remarks

The site must be enabled for remote development. 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/loadAndInstallAppInSpecifiedLocale(appPackageStream,installationLocaleLCID)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/loadAndInstallAppInSpecifiedLocale(appPackageStream,installationLocaleLCID)

Resource parameters

  • appPackageStream

  • installationLocaleLCID