GET example/api/publication/{publicationId}/optouts?FromDateTime={FromDateTime}
https://app.bwz.se/bedrock/example/api/publication/{publicationId}/optouts?FromDateTime={FromDateTime}
Gets MailPublicationOptOutModels of a Publication.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
publicationId | integer |
Required |
Body Parameters
Gets or sets from date time. From date time.
MailPublicationOptOutFilterOptionsName | Description | Type | Additional information |
---|---|---|---|
FromDateTime |
Gets or sets from date time. |
date |
None. |
Response Information
Resource Description
Array of MailPublicationOptOutModels.
Collection of MailPublicationOptOutModelName | Description | Type | Additional information |
---|---|---|---|
Gets or sets the email address of the MailPublicationOptOut. |
string |
None. |
|
Id |
Gets or sets the id of the MailPublicationOptOut. |
integer |
None. |
OptOutDate |
Gets or sets the opt out date of the MailPublicationOptOut. |
date |
None. |
PublicationId |
Gets or sets the publication id of the MailPublicationOptOut. |
integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Email": "sample string 1", "Id": 2, "OptOutDate": "2024-12-23T06:32:10.3071754+01:00", "PublicationId": 4 }, { "Email": "sample string 1", "Id": 2, "OptOutDate": "2024-12-23T06:32:10.3071754+01:00", "PublicationId": 4 } ]
application/xml, text/xml
Sample:
<ArrayOfMailPublicationOptOutModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.MailPublicationOptOut"> <MailPublicationOptOutModel> <Email>sample string 1</Email> <Id>2</Id> <OptOutDate>2024-12-23T06:32:10.3071754+01:00</OptOutDate> <PublicationId>4</PublicationId> </MailPublicationOptOutModel> <MailPublicationOptOutModel> <Email>sample string 1</Email> <Id>2</Id> <OptOutDate>2024-12-23T06:32:10.3071754+01:00</OptOutDate> <PublicationId>4</PublicationId> </MailPublicationOptOutModel> </ArrayOfMailPublicationOptOutModel>