Stampfactory
Dokumentation
Zeitkorrekturen

Zeitkorrektur ablehnen

Decline a pending correction with a reason. The request is kept (status = rejected) for the history; the day falls back to its original events

PATCH
/employees/{employee}/working_time/reject
AuthentifizierungBearer <token>

Bearer-Token, erhalten über den Login-Endpunkt (POST /rest/login).

Ort: header

Pfadparameter

employee*string

The employee ID

Formatuuid

Request-Body

application/json

TypeScript-Definitionen

TypeScript-Typ für request body.

Body of PATCH /rest/employees/{employee}/working_time/reject. The note is mandatory: the employee sees it as the reason for the rejection.

Response-Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/employees/497f6eca-6276-4993-bfeb-53cbbbba6f08/working_time/reject" \  -H "Content-Type: application/json" \  -d '{    "date": "2019-08-24T14:15:22Z",    "note": "string"  }'
{  "message": "Korrektur abgelehnt.",  "updated": 0}