PUT /rest/leave_requests/{leaveRequest}/substitute — The nominated
substitute confirms or declines covering the absence. Only the substitute
employee themselves may respond, and only while the substitution is still
pending
curl --request PUT \
--url https://{tenant}.stamp.eu/rest/leave_requests/{leaveRequest}/substitute \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://{tenant}.stamp.eu/rest/leave_requests/{leaveRequest}/substitute"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://{tenant}.stamp.eu/rest/leave_requests/{leaveRequest}/substitute', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenant}.stamp.eu/rest/leave_requests/{leaveRequest}/substitute",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.stamp.eu/rest/leave_requests/{leaveRequest}/substitute"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://{tenant}.stamp.eu/rest/leave_requests/{leaveRequest}/substitute")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant}.stamp.eu/rest/leave_requests/{leaveRequest}/substitute")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"employee_id": "<string>",
"type": "<string>",
"is_half_day": true,
"status": "<string>",
"start_date": "<string>",
"end_date": "<string>",
"business_days": 123,
"calculated_days": 123,
"valuation_mode": "<string>",
"reason": "<string>",
"substitute_status": "<string>",
"substitute_responded_at": "<string>",
"decided_by": "<string>",
"decided_at": "<string>",
"decision_note": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"can_withdraw": "<string>",
"withdraw_blocked_reason": "<string>",
"employee_name": "<string>",
"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": 123,
"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>"
},
"days": "<string>",
"valued_total": "<string>",
"bucket_allocation": "<string>",
"substitute": {
"id": "<string>",
"name": "<string>"
},
"decided_by_name": "<string>"
}
}{
"message": "<string>"
}{
"message": "Nicht berechtigt."
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Abwesenheiten
Vertretung festlegen
PUT
/
leave_requests
/
{leaveRequest}
/
substitute
PUT /rest/leave_requests/{leaveRequest}/substitute — The nominated
substitute confirms or declines covering the absence. Only the substitute
employee themselves may respond, and only while the substitution is still
pending
curl --request PUT \
--url https://{tenant}.stamp.eu/rest/leave_requests/{leaveRequest}/substitute \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://{tenant}.stamp.eu/rest/leave_requests/{leaveRequest}/substitute"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://{tenant}.stamp.eu/rest/leave_requests/{leaveRequest}/substitute', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenant}.stamp.eu/rest/leave_requests/{leaveRequest}/substitute",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.stamp.eu/rest/leave_requests/{leaveRequest}/substitute"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://{tenant}.stamp.eu/rest/leave_requests/{leaveRequest}/substitute")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant}.stamp.eu/rest/leave_requests/{leaveRequest}/substitute")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"employee_id": "<string>",
"type": "<string>",
"is_half_day": true,
"status": "<string>",
"start_date": "<string>",
"end_date": "<string>",
"business_days": 123,
"calculated_days": 123,
"valuation_mode": "<string>",
"reason": "<string>",
"substitute_status": "<string>",
"substitute_responded_at": "<string>",
"decided_by": "<string>",
"decided_at": "<string>",
"decision_note": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"can_withdraw": "<string>",
"withdraw_blocked_reason": "<string>",
"employee_name": "<string>",
"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": 123,
"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>"
},
"days": "<string>",
"valued_total": "<string>",
"bucket_allocation": "<string>",
"substitute": {
"id": "<string>",
"name": "<string>"
},
"decided_by_name": "<string>"
}
}{
"message": "<string>"
}{
"message": "Nicht berechtigt."
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Authorizations
Bearer-Token, erhalten über den Login-Endpunkt (POST /rest/login).
Path Parameters
The leave request ID
Body
application/json
Available options:
confirmed, declined Response
LeaveRequestResource
Show child attributes
Show child attributes
⌘I