POST api/Outlook/AddFolderWebhookAndMapping
Register webhook on a outlook folder and adds mapping to SharePoint
Request Information
URI Parameters
None.
Body Parameters
User request model for add mapping
WorkPoint365.WebAPI.Model.Outlook.RegisterWebhookRequestModelName | Description | Type | Additional information |
---|---|---|---|
OutlookFolderEntryId | string |
None. |
|
OutlookFolderName | string |
None. |
|
OutlookFullFolderPath | string |
None. |
|
RelativeSiteUrl | string |
None. |
|
RelativeListPath | string |
None. |
|
RelativeFolderPath | string |
None. |
|
BusinessModuleId | string |
None. |
|
EntityId | integer |
None. |
|
WorkPointExpressSolutionId | string |
None. |
|
ListId | string |
None. |
|
FolderItemId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "OutlookFolderEntryId": "sample string 1", "OutlookFolderName": "sample string 2", "OutlookFullFolderPath": "sample string 3", "RelativeSiteUrl": "sample string 4", "RelativeListPath": "sample string 5", "RelativeFolderPath": "sample string 6", "BusinessModuleId": "sample string 7", "EntityId": 8, "WorkPointExpressSolutionId": "sample string 9", "ListId": "sample string 10", "FolderItemId": 1 }
application/xml, text/xml
Sample:
<RegisterWebhookRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WorkPoint365.WebAPI.Model.Outlook"> <BusinessModuleId>sample string 7</BusinessModuleId> <EntityId>8</EntityId> <FolderItemId>1</FolderItemId> <ListId>sample string 10</ListId> <OutlookFolderEntryId>sample string 1</OutlookFolderEntryId> <OutlookFolderName>sample string 2</OutlookFolderName> <OutlookFullFolderPath>sample string 3</OutlookFullFolderPath> <RelativeFolderPath>sample string 6</RelativeFolderPath> <RelativeListPath>sample string 5</RelativeListPath> <RelativeSiteUrl>sample string 4</RelativeSiteUrl> <WorkPointExpressSolutionId>sample string 9</WorkPointExpressSolutionId> </RegisterWebhookRequestModel>
Response Information
Resource Description
Returns 200 OK if the subscription and mapping creation processing succeeded, 500 internal error if error caught
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.