SP.FeatureCollection.add Method (sp.js)

Adds a feature to the collection with the specified feature ID and scope.

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

SP.FeatureCollection.add()

Return value

Type: SP.Feature

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/features/add(featureId,force,featdefScope)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/features/add(featureId,force,featdefScope)

Resource parameters

  • featureId

  • force

  • featdefScope

Parameters

  • featureId

  • force

  • featdefScope