SP.Web.getAppInstanceById Method (sp.js)

Retrieves an AppInstance installed on this Site.

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

SP.Web.getAppInstanceById()

Parameters

  • appInstanceId
    Application instance identifier.

Return value

SP.AppInstance

The application instance installed on this Site.

REST resource endpoint

See Web resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/getAppInstanceById(appInstanceId)

HTTP requests

This resource supports the following HTTP commands:

  • POST

GET syntax

GET http://<sitecollection>/<site>/_api/web/getAppInstanceById(appInstanceId)

POST syntax

POST http://<sitecollection>/<site>/_api/web/getAppInstanceById(appInstanceId)

Resource parameters

  • appInstanceId