POST api/Forms/Abwesenheit

Handles the HTTP POST request to create a new Bestellung (order).

Request Information

URI Parameters

None.

Body Parameters

The Bestellung object containing the order details.

Abwesenheit
NameDescriptionTypeAdditional information
Art

string

None.

ArtID

integer

None.

Von

date

None.

Bis

date

None.

HalberTag

boolean

None.

HalberTagWann

integer

None.

Bemerkung

string

None.

ID

integer

None.

Datum

date

None.

BenutzerID

integer

None.

BenutzerName

string

None.

BenutzerEmail

string

None.

BenutzerFullname

string

None.

DeviceName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Art": "sample string 1",
  "ArtID": 2,
  "Von": "2026-04-12T12:52:12.6283326+02:00",
  "Bis": "2026-04-12T12:52:12.6283326+02:00",
  "HalberTag": true,
  "HalberTagWann": 6,
  "Bemerkung": "sample string 7",
  "ID": 8,
  "Datum": "2026-04-12T12:52:12.6283326+02:00",
  "BenutzerID": 10,
  "BenutzerName": "sample string 11",
  "BenutzerEmail": "sample string 12",
  "BenutzerFullname": "sample string 13",
  "DeviceName": "sample string 14"
}

application/xml, text/xml

Sample:
<Abwesenheit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Redel.Digital.Forms.Models.Forms">
  <BenutzerEmail xmlns="http://schemas.datacontract.org/2004/07/Redel.Digital.Forms.Models">sample string 12</BenutzerEmail>
  <BenutzerFullname xmlns="http://schemas.datacontract.org/2004/07/Redel.Digital.Forms.Models">sample string 13</BenutzerFullname>
  <BenutzerID xmlns="http://schemas.datacontract.org/2004/07/Redel.Digital.Forms.Models">10</BenutzerID>
  <BenutzerName xmlns="http://schemas.datacontract.org/2004/07/Redel.Digital.Forms.Models">sample string 11</BenutzerName>
  <Datum xmlns="http://schemas.datacontract.org/2004/07/Redel.Digital.Forms.Models">2026-04-12T12:52:12.6283326+02:00</Datum>
  <DeviceName xmlns="http://schemas.datacontract.org/2004/07/Redel.Digital.Forms.Models">sample string 14</DeviceName>
  <ID xmlns="http://schemas.datacontract.org/2004/07/Redel.Digital.Forms.Models">8</ID>
  <Art>sample string 1</Art>
  <ArtID>2</ArtID>
  <Bemerkung>sample string 7</Bemerkung>
  <Bis>2026-04-12T12:52:12.6283326+02:00</Bis>
  <HalberTag>true</HalberTag>
  <HalberTagWann>6</HalberTagWann>
  <Von>2026-04-12T12:52:12.6283326+02:00</Von>
</Abwesenheit>

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 'Abwesenheit'.

Response Information

Resource Description

An IHttpActionResult indicating the result of the operation.

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.