Stampfactory
Dokumentation
Abwesenheiten

Vertretung festlegen

The nominated substitute confirms or declines covering the absence. Only the substitute employee themselves may respond, and only while the substitution is still pending

PUT
/leave_requests/{leaveRequest}/substitute
AuthentifizierungBearer <token>

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

Ort: header

Pfadparameter

leaveRequest*string

The leave request ID

Formatuuid

Request-Body

application/json

TypeScript-Definitionen

TypeScript-Typ für request body.

Body of PUT /rest/leave_requests/{leaveRequest}/substitute. Only the nominated substitute answers here, and only with confirm or decline.

Response-Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/leave_requests/497f6eca-6276-4993-bfeb-53cbbbba6f08/substitute" \  -H "Content-Type: application/json" \  -d '{    "status": "confirmed"  }'
{  "data": {    "id": "string",    "employee_id": "string",    "employee_name": "string",    "type": "string",    "is_half_day": true,    "first_day_half": true,    "last_day_half": true,    "absence_type": {      "id": "string",      "slug": "string",      "name": "string",      "color": "string",      "icon": "string",      "is_system": "string",      "category": "string",      "unit": "string",      "half_day_allowed": "string",      "affects_vacation": "string",      "target_work_factor": 0,      "working_time_flag": "string",      "requires_approval": "string",      "is_paid": "string",      "certificate_required": "string",      "certificate_deadline_days": "string",      "substitute_option": "string",      "count_weekdays_only": "string",      "is_active": "string",      "sort_order": "string"    },    "status": "string",    "start_date": "string",    "end_date": "string",    "business_days": 0,    "calculated_days": 0,    "hours": 0,    "valuation_mode": "string",    "days": "string",    "valued_total": "string",    "bucket_allocation": "string",    "reason": "string",    "substitute": {      "id": "string",      "name": "string"    },    "substitute_status": "string",    "substitute_responded_at": "string",    "decided_by": "string",    "decided_by_name": "string",    "decided_at": "string",    "decision_note": "string",    "created_at": "string",    "updated_at": "string",    "can_withdraw": "string",    "withdraw_blocked_reason": "string"  }}