POST api/SetNotifications
Request Information
URI Parameters
None.
Body Parameters
Collection of Notification| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CampaignId | integer |
None. |
|
| ToFriendId | integer |
None. |
|
| Subject | string |
None. |
|
| From | string |
None. |
|
| To | string |
None. |
|
| Body | string |
None. |
|
| Status | CampaignStatus |
None. |
|
| CreateUserId | integer |
None. |
|
| CreateDate | date |
None. |
|
| Attachment | Collection of byte |
None. |
|
| AttachmentName | string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"CampaignId": 2,
"ToFriendId": 3,
"Subject": "sample string 4",
"From": "sample string 5",
"To": "sample string 6",
"Body": "sample string 7",
"Status": 0,
"CreateUserId": 8,
"CreateDate": "2026-02-11T14:32:08.4043067+01:00",
"Attachment": "QEA=",
"AttachmentName": "sample string 10"
},
{
"Id": 1,
"CampaignId": 2,
"ToFriendId": 3,
"Subject": "sample string 4",
"From": "sample string 5",
"To": "sample string 6",
"Body": "sample string 7",
"Status": 0,
"CreateUserId": 8,
"CreateDate": "2026-02-11T14:32:08.4043067+01:00",
"Attachment": "QEA=",
"AttachmentName": "sample string 10"
}
]
application/xml, text/xml
Sample:
<ArrayOfNotification xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Models.Mail">
<Notification>
<Attachment>QEA=</Attachment>
<AttachmentName>sample string 10</AttachmentName>
<Body>sample string 7</Body>
<CampaignId>2</CampaignId>
<CreateDate>2026-02-11T14:32:08.4043067+01:00</CreateDate>
<CreateUserId>8</CreateUserId>
<From>sample string 5</From>
<Id>1</Id>
<Status>Error</Status>
<Subject>sample string 4</Subject>
<To>sample string 6</To>
<ToFriendId>3</ToFriendId>
</Notification>
<Notification>
<Attachment>QEA=</Attachment>
<AttachmentName>sample string 10</AttachmentName>
<Body>sample string 7</Body>
<CampaignId>2</CampaignId>
<CreateDate>2026-02-11T14:32:08.4043067+01:00</CreateDate>
<CreateUserId>8</CreateUserId>
<From>sample string 5</From>
<Id>1</Id>
<Status>Error</Status>
<Subject>sample string 4</Subject>
<To>sample string 6</To>
<ToFriendId>3</ToFriendId>
</Notification>
</ArrayOfNotification>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Response| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Code | integer |
None. |
|
| Modifications | integer |
None. |
|
| Id | integer |
None. |
|
| Errors | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Code": 2,
"Modifications": 3,
"Id": 4,
"Errors": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Models">
<Code>2</Code>
<Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Errors>
<Id>4</Id>
<Modifications>3</Modifications>
<Success>true</Success>
</Response>