POST api/Notifications/ResourceTypes/{resourceTypeId}/Resources/{resourceId}/Subscription

Request Information

URI Parameters

NameDescriptionTypeAdditional information
resourceTypeId

string

Required

resourceId

string

Required

Body Parameters

NotificationSubscription
NameDescriptionTypeAdditional information
CreatedBy

string

None.

EmailAddress

string

None.

NotificationWindow

integer

None.

ReminderWindow

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CreatedBy": "sample string 1",
  "EmailAddress": "sample string 2",
  "NotificationWindow": 3,
  "ReminderWindow": 1
}

application/xml, text/xml

Sample:
<NotificationSubscription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.API.Model">
  <CreatedBy>sample string 1</CreatedBy>
  <EmailAddress>sample string 2</EmailAddress>
  <NotificationWindow>3</NotificationWindow>
  <ReminderWindow>1</ReminderWindow>
</NotificationSubscription>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

NotificationSubscription
NameDescriptionTypeAdditional information
CreatedBy

string

None.

EmailAddress

string

None.

NotificationWindow

integer

None.

ReminderWindow

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "CreatedBy": "sample string 1",
  "EmailAddress": "sample string 2",
  "NotificationWindow": 3,
  "ReminderWindow": 1
}

application/xml, text/xml

Sample:
<NotificationSubscription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.API.Model">
  <CreatedBy>sample string 1</CreatedBy>
  <EmailAddress>sample string 2</EmailAddress>
  <NotificationWindow>3</NotificationWindow>
  <ReminderWindow>1</ReminderWindow>
</NotificationSubscription>