PUT api/Zeiten/{id}

Edits an existing Arbeitszeit entry in the database.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The unique identifier of the Arbeitszeit entry to be edited.

integer

Required

Body Parameters

The updated Arbeitszeit data.

Arbeitszeit
NameDescriptionTypeAdditional information
Id

integer

None.

ZeitartID

integer

None.

PersonalID

integer

None.

Personal

string

None.

StartTime

date

None.

EndTime

date

None.

Pause

decimal number

None.

Anwesend

time interval

None.

ProjektNummer

string

None.

ProjektName

string

None.

KundenNummer

string

None.

KundenName

string

None.

Kommentar

string

None.

Status

integer

None.

Regiebericht

integer

None.

ErstelltAm

date

None.

ErstelltVon

string

None.

GeändertAm

date

None.

GeändertVon

string

None.

GeprüftAm

date

None.

GeprüftVon

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ZeitartID": 2,
  "PersonalID": 3,
  "Personal": "sample string 4",
  "StartTime": "2026-04-12T12:49:14.1282555+02:00",
  "EndTime": "2026-04-12T12:49:14.1282555+02:00",
  "Pause": 7.1,
  "Anwesend": "00:00:00.1234567",
  "ProjektNummer": "sample string 8",
  "ProjektName": "sample string 9",
  "KundenNummer": "sample string 10",
  "KundenName": "sample string 11",
  "Kommentar": "sample string 12",
  "Status": 13,
  "Regiebericht": 14,
  "ErstelltAm": "2026-04-12T12:49:14.1282555+02:00",
  "ErstelltVon": "sample string 15",
  "GeändertAm": "2026-04-12T12:49:14.1282555+02:00",
  "GeändertVon": "sample string 16",
  "GeprüftAm": "2026-04-12T12:49:14.1282555+02:00",
  "GeprüftVon": "sample string 17"
}

application/xml, text/xml

Sample:
<Arbeitszeit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Redel.Digital.Forms.Models">
  <Anwesend>PT0.1234567S</Anwesend>
  <EndTime>2026-04-12T12:49:14.1282555+02:00</EndTime>
  <ErstelltAm>2026-04-12T12:49:14.1282555+02:00</ErstelltAm>
  <ErstelltVon>sample string 15</ErstelltVon>
  <GeprüftAm>2026-04-12T12:49:14.1282555+02:00</GeprüftAm>
  <GeprüftVon>sample string 17</GeprüftVon>
  <GeändertAm>2026-04-12T12:49:14.1282555+02:00</GeändertAm>
  <GeändertVon>sample string 16</GeändertVon>
  <Id>1</Id>
  <Kommentar>sample string 12</Kommentar>
  <KundenName>sample string 11</KundenName>
  <KundenNummer>sample string 10</KundenNummer>
  <Pause>7.1</Pause>
  <Personal>sample string 4</Personal>
  <PersonalID>3</PersonalID>
  <ProjektName>sample string 9</ProjektName>
  <ProjektNummer>sample string 8</ProjektNummer>
  <Regiebericht>14</Regiebericht>
  <StartTime>2026-04-12T12:49:14.1282555+02:00</StartTime>
  <Status>13</Status>
  <ZeitartID>2</ZeitartID>
</Arbeitszeit>

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

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.