SP.EventReceiverDefinitionCollection.add Method (sp.js)

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

SP.EventReceiverDefinitionCollection.add(eventReceiverCreationInformation)
          

Parameters

  • eventReceiverCreationInformation

Return value

SP.EventReceiverDefinition

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/eventreceivers/add(eventReceiverCreationInformation)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/eventreceivers/add(eventReceiverCreationInformation)

Resource parameters

  • eventReceiverCreationInformation