POST api/mailinglist/create

Create a new mailing list item

Request Information

URI Parameters

None.

Body Parameters

createmailinglistarguments
NameDescriptionTypeAdditional information
initials

The Initials of the person

string

None.

firstname

The first name of the person

string

None.

middlename

The middle name of the person

string

None.

name

The last name of the person

string

None.

street

The street name of the customer

string

None.

housenumber

The house number of the customer

string

None.

postalcode

The postal code of the customer

string

None.

city

The city of the customer

string

None.

birthdate

The birthdate of the person, can be null

date

None.

email

The email address of the person

string

None.

marketing

The person has given permision to use the email addres for marketing activities

boolean

None.

mobilephone

The mobile phonenumber

string

None.

licenceplate

The licenceplate

string

None.

Request Formats

application/json, text/json

Sample:
{
  "initials": "sample string 1",
  "firstname": "sample string 2",
  "middlename": "sample string 3",
  "name": "sample string 4",
  "street": "sample string 5",
  "housenumber": "sample string 6",
  "postalcode": "sample string 7",
  "city": "sample string 8",
  "birthdate": "2024-11-24",
  "email": "sample string 9",
  "marketing": true,
  "mobilephone": "sample string 11",
  "licenceplate": "sample string 12"
}

application/xml, text/xml

Sample:
<createmailinglistarguments xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechnoDataSystems.Enterprise.TotalWash.Web.API">
  <birthdate>2024-11-24T12:58:26.2577122+01:00</birthdate>
  <city>sample string 8</city>
  <email>sample string 9</email>
  <firstname>sample string 2</firstname>
  <housenumber>sample string 6</housenumber>
  <initials>sample string 1</initials>
  <licenceplate>sample string 12</licenceplate>
  <marketing>true</marketing>
  <middlename>sample string 3</middlename>
  <mobilephone>sample string 11</mobilephone>
  <name>sample string 4</name>
  <postalcode>sample string 7</postalcode>
  <street>sample string 5</street>
</createmailinglistarguments>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'createmailinglistarguments'.

Response Information

Resource Description

createmailinglistarguments
NameDescriptionTypeAdditional information
initials

The Initials of the person

string

None.

firstname

The first name of the person

string

None.

middlename

The middle name of the person

string

None.

name

The last name of the person

string

None.

street

The street name of the customer

string

None.

housenumber

The house number of the customer

string

None.

postalcode

The postal code of the customer

string

None.

city

The city of the customer

string

None.

birthdate

The birthdate of the person, can be null

date

None.

email

The email address of the person

string

None.

marketing

The person has given permision to use the email addres for marketing activities

boolean

None.

mobilephone

The mobile phonenumber

string

None.

licenceplate

The licenceplate

string

None.

Response Formats

application/json, text/json

Sample:
{
  "initials": "sample string 1",
  "firstname": "sample string 2",
  "middlename": "sample string 3",
  "name": "sample string 4",
  "street": "sample string 5",
  "housenumber": "sample string 6",
  "postalcode": "sample string 7",
  "city": "sample string 8",
  "birthdate": "2024-11-24",
  "email": "sample string 9",
  "marketing": true,
  "mobilephone": "sample string 11",
  "licenceplate": "sample string 12"
}

application/xml, text/xml

Sample:
<createmailinglistarguments xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechnoDataSystems.Enterprise.TotalWash.Web.API">
  <birthdate>2024-11-24T12:58:26.2577122+01:00</birthdate>
  <city>sample string 8</city>
  <email>sample string 9</email>
  <firstname>sample string 2</firstname>
  <housenumber>sample string 6</housenumber>
  <initials>sample string 1</initials>
  <licenceplate>sample string 12</licenceplate>
  <marketing>true</marketing>
  <middlename>sample string 3</middlename>
  <mobilephone>sample string 11</mobilephone>
  <name>sample string 4</name>
  <postalcode>sample string 7</postalcode>
  <street>sample string 5</street>
</createmailinglistarguments>