POST example/api/publication/optouts

https://app.bwz.se/bedrock/example/api/publication/optouts

Creates a publication optout.

Request Information

URI Parameters

None.

Body Parameters

Sets the email that will be optouted.

CreateMailPublicationOptOutArgs
NameDescriptionTypeAdditional information
PublicationId

Sets the ID of the Publication

integer

None.

Email

Sets the email that will be optouted.

string

Required

Valid email adress

Request Formats

application/json, text/json

Sample:
{
  "PublicationId": 1,
  "Email": "sample string 2"
}

application/xml, text/xml

Sample:
<CreateMailPublicationOptOutArgs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.MailPublicationOptOut">
  <Email>sample string 2</Email>
  <PublicationId>1</PublicationId>
</CreateMailPublicationOptOutArgs>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The MailPublicationOptOutModel that has been created.

MailPublicationOptOutModel
NameDescriptionTypeAdditional information
Email

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-11-24T01:12:03.0259667+01:00",
  "PublicationId": 4
}

application/xml, text/xml

Sample:
<MailPublicationOptOutModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.MailPublicationOptOut">
  <Email>sample string 1</Email>
  <Id>2</Id>
  <OptOutDate>2024-11-24T01:12:03.0259667+01:00</OptOutDate>
  <PublicationId>4</PublicationId>
</MailPublicationOptOutModel>