POST api/stempel

Adds a new stamp entry or updates an existing one for a given personal ID.

Request Information

URI Parameters

None.

Body Parameters

The request object containing the details for the stamp entry.

AddStempelRequest
NameDescriptionTypeAdditional information
PersonalID

integer

None.

Zeit

date

None.

Dauer

integer

None.

Pause

integer

None.

Kunde

string

None.

Projekt

string

None.

Kommentar

string

None.

Aktiv

boolean

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Altitude

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "PersonalID": 1,
  "Zeit": "2026-04-12T12:44:59.5472011+02:00",
  "Dauer": 3,
  "Pause": 4,
  "Kunde": "sample string 5",
  "Projekt": "sample string 6",
  "Kommentar": "sample string 7",
  "Aktiv": true,
  "Latitude": 9.1,
  "Longitude": 10.1,
  "Altitude": 11.1
}

application/xml, text/xml

Sample:
<AddStempelRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Redel.Digital.Forms.Models.Requests">
  <Aktiv>true</Aktiv>
  <Altitude>11.1</Altitude>
  <Dauer>3</Dauer>
  <Kommentar>sample string 7</Kommentar>
  <Kunde>sample string 5</Kunde>
  <Latitude>9.1</Latitude>
  <Longitude>10.1</Longitude>
  <Pause>4</Pause>
  <PersonalID>1</PersonalID>
  <Projekt>sample string 6</Projekt>
  <Zeit>2026-04-12T12:44:59.5472011+02:00</Zeit>
</AddStempelRequest>

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

Response Information

Resource Description

An indicating the result of the operation.

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.