curl --request POST \
--url https://api.absentify.com/api/v1/members/{id}/schedule \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"from": "<string>",
"monday_am_start": "<string>",
"monday_am_end": "<string>",
"monday_pm_start": "<string>",
"monday_pm_end": "<string>",
"monday_am_enabled": true,
"monday_pm_enabled": true,
"monday_deduct_fullday": true,
"tuesday_am_start": "<string>",
"tuesday_am_end": "<string>",
"tuesday_pm_start": "<string>",
"tuesday_pm_end": "<string>",
"tuesday_am_enabled": true,
"tuesday_pm_enabled": true,
"tuesday_deduct_fullday": true,
"wednesday_am_start": "<string>",
"wednesday_am_end": "<string>",
"wednesday_pm_start": "<string>",
"wednesday_pm_end": "<string>",
"wednesday_am_enabled": true,
"wednesday_pm_enabled": true,
"wednesday_deduct_fullday": true,
"thursday_am_start": "<string>",
"thursday_am_end": "<string>",
"thursday_pm_start": "<string>",
"thursday_pm_end": "<string>",
"thursday_am_enabled": true,
"thursday_pm_enabled": true,
"thursday_deduct_fullday": true,
"friday_am_start": "<string>",
"friday_am_end": "<string>",
"friday_pm_start": "<string>",
"friday_pm_end": "<string>",
"friday_am_enabled": true,
"friday_pm_enabled": true,
"friday_deduct_fullday": true,
"saturday_am_start": "<string>",
"saturday_am_end": "<string>",
"saturday_pm_start": "<string>",
"saturday_pm_end": "<string>",
"saturday_am_enabled": true,
"saturday_pm_enabled": true,
"saturday_deduct_fullday": true,
"sunday_am_start": "<string>",
"sunday_am_end": "<string>",
"sunday_pm_start": "<string>",
"sunday_pm_end": "<string>",
"sunday_am_enabled": true,
"sunday_pm_enabled": true,
"sunday_deduct_fullday": true
}
'import requests
url = "https://api.absentify.com/api/v1/members/{id}/schedule"
payload = {
"from": "<string>",
"monday_am_start": "<string>",
"monday_am_end": "<string>",
"monday_pm_start": "<string>",
"monday_pm_end": "<string>",
"monday_am_enabled": True,
"monday_pm_enabled": True,
"monday_deduct_fullday": True,
"tuesday_am_start": "<string>",
"tuesday_am_end": "<string>",
"tuesday_pm_start": "<string>",
"tuesday_pm_end": "<string>",
"tuesday_am_enabled": True,
"tuesday_pm_enabled": True,
"tuesday_deduct_fullday": True,
"wednesday_am_start": "<string>",
"wednesday_am_end": "<string>",
"wednesday_pm_start": "<string>",
"wednesday_pm_end": "<string>",
"wednesday_am_enabled": True,
"wednesday_pm_enabled": True,
"wednesday_deduct_fullday": True,
"thursday_am_start": "<string>",
"thursday_am_end": "<string>",
"thursday_pm_start": "<string>",
"thursday_pm_end": "<string>",
"thursday_am_enabled": True,
"thursday_pm_enabled": True,
"thursday_deduct_fullday": True,
"friday_am_start": "<string>",
"friday_am_end": "<string>",
"friday_pm_start": "<string>",
"friday_pm_end": "<string>",
"friday_am_enabled": True,
"friday_pm_enabled": True,
"friday_deduct_fullday": True,
"saturday_am_start": "<string>",
"saturday_am_end": "<string>",
"saturday_pm_start": "<string>",
"saturday_pm_end": "<string>",
"saturday_am_enabled": True,
"saturday_pm_enabled": True,
"saturday_deduct_fullday": True,
"sunday_am_start": "<string>",
"sunday_am_end": "<string>",
"sunday_pm_start": "<string>",
"sunday_pm_end": "<string>",
"sunday_am_enabled": True,
"sunday_pm_enabled": True,
"sunday_deduct_fullday": True
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
from: '<string>',
monday_am_start: '<string>',
monday_am_end: '<string>',
monday_pm_start: '<string>',
monday_pm_end: '<string>',
monday_am_enabled: true,
monday_pm_enabled: true,
monday_deduct_fullday: true,
tuesday_am_start: '<string>',
tuesday_am_end: '<string>',
tuesday_pm_start: '<string>',
tuesday_pm_end: '<string>',
tuesday_am_enabled: true,
tuesday_pm_enabled: true,
tuesday_deduct_fullday: true,
wednesday_am_start: '<string>',
wednesday_am_end: '<string>',
wednesday_pm_start: '<string>',
wednesday_pm_end: '<string>',
wednesday_am_enabled: true,
wednesday_pm_enabled: true,
wednesday_deduct_fullday: true,
thursday_am_start: '<string>',
thursday_am_end: '<string>',
thursday_pm_start: '<string>',
thursday_pm_end: '<string>',
thursday_am_enabled: true,
thursday_pm_enabled: true,
thursday_deduct_fullday: true,
friday_am_start: '<string>',
friday_am_end: '<string>',
friday_pm_start: '<string>',
friday_pm_end: '<string>',
friday_am_enabled: true,
friday_pm_enabled: true,
friday_deduct_fullday: true,
saturday_am_start: '<string>',
saturday_am_end: '<string>',
saturday_pm_start: '<string>',
saturday_pm_end: '<string>',
saturday_am_enabled: true,
saturday_pm_enabled: true,
saturday_deduct_fullday: true,
sunday_am_start: '<string>',
sunday_am_end: '<string>',
sunday_pm_start: '<string>',
sunday_pm_end: '<string>',
sunday_am_enabled: true,
sunday_pm_enabled: true,
sunday_deduct_fullday: true
})
};
fetch('https://api.absentify.com/api/v1/members/{id}/schedule', 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://api.absentify.com/api/v1/members/{id}/schedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'from' => '<string>',
'monday_am_start' => '<string>',
'monday_am_end' => '<string>',
'monday_pm_start' => '<string>',
'monday_pm_end' => '<string>',
'monday_am_enabled' => true,
'monday_pm_enabled' => true,
'monday_deduct_fullday' => true,
'tuesday_am_start' => '<string>',
'tuesday_am_end' => '<string>',
'tuesday_pm_start' => '<string>',
'tuesday_pm_end' => '<string>',
'tuesday_am_enabled' => true,
'tuesday_pm_enabled' => true,
'tuesday_deduct_fullday' => true,
'wednesday_am_start' => '<string>',
'wednesday_am_end' => '<string>',
'wednesday_pm_start' => '<string>',
'wednesday_pm_end' => '<string>',
'wednesday_am_enabled' => true,
'wednesday_pm_enabled' => true,
'wednesday_deduct_fullday' => true,
'thursday_am_start' => '<string>',
'thursday_am_end' => '<string>',
'thursday_pm_start' => '<string>',
'thursday_pm_end' => '<string>',
'thursday_am_enabled' => true,
'thursday_pm_enabled' => true,
'thursday_deduct_fullday' => true,
'friday_am_start' => '<string>',
'friday_am_end' => '<string>',
'friday_pm_start' => '<string>',
'friday_pm_end' => '<string>',
'friday_am_enabled' => true,
'friday_pm_enabled' => true,
'friday_deduct_fullday' => true,
'saturday_am_start' => '<string>',
'saturday_am_end' => '<string>',
'saturday_pm_start' => '<string>',
'saturday_pm_end' => '<string>',
'saturday_am_enabled' => true,
'saturday_pm_enabled' => true,
'saturday_deduct_fullday' => true,
'sunday_am_start' => '<string>',
'sunday_am_end' => '<string>',
'sunday_pm_start' => '<string>',
'sunday_pm_end' => '<string>',
'sunday_am_enabled' => true,
'sunday_pm_enabled' => true,
'sunday_deduct_fullday' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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://api.absentify.com/api/v1/members/{id}/schedule"
payload := strings.NewReader("{\n \"from\": \"<string>\",\n \"monday_am_start\": \"<string>\",\n \"monday_am_end\": \"<string>\",\n \"monday_pm_start\": \"<string>\",\n \"monday_pm_end\": \"<string>\",\n \"monday_am_enabled\": true,\n \"monday_pm_enabled\": true,\n \"monday_deduct_fullday\": true,\n \"tuesday_am_start\": \"<string>\",\n \"tuesday_am_end\": \"<string>\",\n \"tuesday_pm_start\": \"<string>\",\n \"tuesday_pm_end\": \"<string>\",\n \"tuesday_am_enabled\": true,\n \"tuesday_pm_enabled\": true,\n \"tuesday_deduct_fullday\": true,\n \"wednesday_am_start\": \"<string>\",\n \"wednesday_am_end\": \"<string>\",\n \"wednesday_pm_start\": \"<string>\",\n \"wednesday_pm_end\": \"<string>\",\n \"wednesday_am_enabled\": true,\n \"wednesday_pm_enabled\": true,\n \"wednesday_deduct_fullday\": true,\n \"thursday_am_start\": \"<string>\",\n \"thursday_am_end\": \"<string>\",\n \"thursday_pm_start\": \"<string>\",\n \"thursday_pm_end\": \"<string>\",\n \"thursday_am_enabled\": true,\n \"thursday_pm_enabled\": true,\n \"thursday_deduct_fullday\": true,\n \"friday_am_start\": \"<string>\",\n \"friday_am_end\": \"<string>\",\n \"friday_pm_start\": \"<string>\",\n \"friday_pm_end\": \"<string>\",\n \"friday_am_enabled\": true,\n \"friday_pm_enabled\": true,\n \"friday_deduct_fullday\": true,\n \"saturday_am_start\": \"<string>\",\n \"saturday_am_end\": \"<string>\",\n \"saturday_pm_start\": \"<string>\",\n \"saturday_pm_end\": \"<string>\",\n \"saturday_am_enabled\": true,\n \"saturday_pm_enabled\": true,\n \"saturday_deduct_fullday\": true,\n \"sunday_am_start\": \"<string>\",\n \"sunday_am_end\": \"<string>\",\n \"sunday_pm_start\": \"<string>\",\n \"sunday_pm_end\": \"<string>\",\n \"sunday_am_enabled\": true,\n \"sunday_pm_enabled\": true,\n \"sunday_deduct_fullday\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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.post("https://api.absentify.com/api/v1/members/{id}/schedule")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"from\": \"<string>\",\n \"monday_am_start\": \"<string>\",\n \"monday_am_end\": \"<string>\",\n \"monday_pm_start\": \"<string>\",\n \"monday_pm_end\": \"<string>\",\n \"monday_am_enabled\": true,\n \"monday_pm_enabled\": true,\n \"monday_deduct_fullday\": true,\n \"tuesday_am_start\": \"<string>\",\n \"tuesday_am_end\": \"<string>\",\n \"tuesday_pm_start\": \"<string>\",\n \"tuesday_pm_end\": \"<string>\",\n \"tuesday_am_enabled\": true,\n \"tuesday_pm_enabled\": true,\n \"tuesday_deduct_fullday\": true,\n \"wednesday_am_start\": \"<string>\",\n \"wednesday_am_end\": \"<string>\",\n \"wednesday_pm_start\": \"<string>\",\n \"wednesday_pm_end\": \"<string>\",\n \"wednesday_am_enabled\": true,\n \"wednesday_pm_enabled\": true,\n \"wednesday_deduct_fullday\": true,\n \"thursday_am_start\": \"<string>\",\n \"thursday_am_end\": \"<string>\",\n \"thursday_pm_start\": \"<string>\",\n \"thursday_pm_end\": \"<string>\",\n \"thursday_am_enabled\": true,\n \"thursday_pm_enabled\": true,\n \"thursday_deduct_fullday\": true,\n \"friday_am_start\": \"<string>\",\n \"friday_am_end\": \"<string>\",\n \"friday_pm_start\": \"<string>\",\n \"friday_pm_end\": \"<string>\",\n \"friday_am_enabled\": true,\n \"friday_pm_enabled\": true,\n \"friday_deduct_fullday\": true,\n \"saturday_am_start\": \"<string>\",\n \"saturday_am_end\": \"<string>\",\n \"saturday_pm_start\": \"<string>\",\n \"saturday_pm_end\": \"<string>\",\n \"saturday_am_enabled\": true,\n \"saturday_pm_enabled\": true,\n \"saturday_deduct_fullday\": true,\n \"sunday_am_start\": \"<string>\",\n \"sunday_am_end\": \"<string>\",\n \"sunday_pm_start\": \"<string>\",\n \"sunday_pm_end\": \"<string>\",\n \"sunday_am_enabled\": true,\n \"sunday_pm_enabled\": true,\n \"sunday_deduct_fullday\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.absentify.com/api/v1/members/{id}/schedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"from\": \"<string>\",\n \"monday_am_start\": \"<string>\",\n \"monday_am_end\": \"<string>\",\n \"monday_pm_start\": \"<string>\",\n \"monday_pm_end\": \"<string>\",\n \"monday_am_enabled\": true,\n \"monday_pm_enabled\": true,\n \"monday_deduct_fullday\": true,\n \"tuesday_am_start\": \"<string>\",\n \"tuesday_am_end\": \"<string>\",\n \"tuesday_pm_start\": \"<string>\",\n \"tuesday_pm_end\": \"<string>\",\n \"tuesday_am_enabled\": true,\n \"tuesday_pm_enabled\": true,\n \"tuesday_deduct_fullday\": true,\n \"wednesday_am_start\": \"<string>\",\n \"wednesday_am_end\": \"<string>\",\n \"wednesday_pm_start\": \"<string>\",\n \"wednesday_pm_end\": \"<string>\",\n \"wednesday_am_enabled\": true,\n \"wednesday_pm_enabled\": true,\n \"wednesday_deduct_fullday\": true,\n \"thursday_am_start\": \"<string>\",\n \"thursday_am_end\": \"<string>\",\n \"thursday_pm_start\": \"<string>\",\n \"thursday_pm_end\": \"<string>\",\n \"thursday_am_enabled\": true,\n \"thursday_pm_enabled\": true,\n \"thursday_deduct_fullday\": true,\n \"friday_am_start\": \"<string>\",\n \"friday_am_end\": \"<string>\",\n \"friday_pm_start\": \"<string>\",\n \"friday_pm_end\": \"<string>\",\n \"friday_am_enabled\": true,\n \"friday_pm_enabled\": true,\n \"friday_deduct_fullday\": true,\n \"saturday_am_start\": \"<string>\",\n \"saturday_am_end\": \"<string>\",\n \"saturday_pm_start\": \"<string>\",\n \"saturday_pm_end\": \"<string>\",\n \"saturday_am_enabled\": true,\n \"saturday_pm_enabled\": true,\n \"saturday_deduct_fullday\": true,\n \"sunday_am_start\": \"<string>\",\n \"sunday_am_end\": \"<string>\",\n \"sunday_pm_start\": \"<string>\",\n \"sunday_pm_end\": \"<string>\",\n \"sunday_am_enabled\": true,\n \"sunday_pm_enabled\": true,\n \"sunday_deduct_fullday\": true\n}"
response = http.request(request)
puts response.read_body"3c90c3cc-0d44-4b50-8888-8dd25736052a"{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}{
"code": "FORBIDDEN",
"message": "Insufficient access",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}Add a member's schedule
Add a member’s schedule
curl --request POST \
--url https://api.absentify.com/api/v1/members/{id}/schedule \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"from": "<string>",
"monday_am_start": "<string>",
"monday_am_end": "<string>",
"monday_pm_start": "<string>",
"monday_pm_end": "<string>",
"monday_am_enabled": true,
"monday_pm_enabled": true,
"monday_deduct_fullday": true,
"tuesday_am_start": "<string>",
"tuesday_am_end": "<string>",
"tuesday_pm_start": "<string>",
"tuesday_pm_end": "<string>",
"tuesday_am_enabled": true,
"tuesday_pm_enabled": true,
"tuesday_deduct_fullday": true,
"wednesday_am_start": "<string>",
"wednesday_am_end": "<string>",
"wednesday_pm_start": "<string>",
"wednesday_pm_end": "<string>",
"wednesday_am_enabled": true,
"wednesday_pm_enabled": true,
"wednesday_deduct_fullday": true,
"thursday_am_start": "<string>",
"thursday_am_end": "<string>",
"thursday_pm_start": "<string>",
"thursday_pm_end": "<string>",
"thursday_am_enabled": true,
"thursday_pm_enabled": true,
"thursday_deduct_fullday": true,
"friday_am_start": "<string>",
"friday_am_end": "<string>",
"friday_pm_start": "<string>",
"friday_pm_end": "<string>",
"friday_am_enabled": true,
"friday_pm_enabled": true,
"friday_deduct_fullday": true,
"saturday_am_start": "<string>",
"saturday_am_end": "<string>",
"saturday_pm_start": "<string>",
"saturday_pm_end": "<string>",
"saturday_am_enabled": true,
"saturday_pm_enabled": true,
"saturday_deduct_fullday": true,
"sunday_am_start": "<string>",
"sunday_am_end": "<string>",
"sunday_pm_start": "<string>",
"sunday_pm_end": "<string>",
"sunday_am_enabled": true,
"sunday_pm_enabled": true,
"sunday_deduct_fullday": true
}
'import requests
url = "https://api.absentify.com/api/v1/members/{id}/schedule"
payload = {
"from": "<string>",
"monday_am_start": "<string>",
"monday_am_end": "<string>",
"monday_pm_start": "<string>",
"monday_pm_end": "<string>",
"monday_am_enabled": True,
"monday_pm_enabled": True,
"monday_deduct_fullday": True,
"tuesday_am_start": "<string>",
"tuesday_am_end": "<string>",
"tuesday_pm_start": "<string>",
"tuesday_pm_end": "<string>",
"tuesday_am_enabled": True,
"tuesday_pm_enabled": True,
"tuesday_deduct_fullday": True,
"wednesday_am_start": "<string>",
"wednesday_am_end": "<string>",
"wednesday_pm_start": "<string>",
"wednesday_pm_end": "<string>",
"wednesday_am_enabled": True,
"wednesday_pm_enabled": True,
"wednesday_deduct_fullday": True,
"thursday_am_start": "<string>",
"thursday_am_end": "<string>",
"thursday_pm_start": "<string>",
"thursday_pm_end": "<string>",
"thursday_am_enabled": True,
"thursday_pm_enabled": True,
"thursday_deduct_fullday": True,
"friday_am_start": "<string>",
"friday_am_end": "<string>",
"friday_pm_start": "<string>",
"friday_pm_end": "<string>",
"friday_am_enabled": True,
"friday_pm_enabled": True,
"friday_deduct_fullday": True,
"saturday_am_start": "<string>",
"saturday_am_end": "<string>",
"saturday_pm_start": "<string>",
"saturday_pm_end": "<string>",
"saturday_am_enabled": True,
"saturday_pm_enabled": True,
"saturday_deduct_fullday": True,
"sunday_am_start": "<string>",
"sunday_am_end": "<string>",
"sunday_pm_start": "<string>",
"sunday_pm_end": "<string>",
"sunday_am_enabled": True,
"sunday_pm_enabled": True,
"sunday_deduct_fullday": True
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
from: '<string>',
monday_am_start: '<string>',
monday_am_end: '<string>',
monday_pm_start: '<string>',
monday_pm_end: '<string>',
monday_am_enabled: true,
monday_pm_enabled: true,
monday_deduct_fullday: true,
tuesday_am_start: '<string>',
tuesday_am_end: '<string>',
tuesday_pm_start: '<string>',
tuesday_pm_end: '<string>',
tuesday_am_enabled: true,
tuesday_pm_enabled: true,
tuesday_deduct_fullday: true,
wednesday_am_start: '<string>',
wednesday_am_end: '<string>',
wednesday_pm_start: '<string>',
wednesday_pm_end: '<string>',
wednesday_am_enabled: true,
wednesday_pm_enabled: true,
wednesday_deduct_fullday: true,
thursday_am_start: '<string>',
thursday_am_end: '<string>',
thursday_pm_start: '<string>',
thursday_pm_end: '<string>',
thursday_am_enabled: true,
thursday_pm_enabled: true,
thursday_deduct_fullday: true,
friday_am_start: '<string>',
friday_am_end: '<string>',
friday_pm_start: '<string>',
friday_pm_end: '<string>',
friday_am_enabled: true,
friday_pm_enabled: true,
friday_deduct_fullday: true,
saturday_am_start: '<string>',
saturday_am_end: '<string>',
saturday_pm_start: '<string>',
saturday_pm_end: '<string>',
saturday_am_enabled: true,
saturday_pm_enabled: true,
saturday_deduct_fullday: true,
sunday_am_start: '<string>',
sunday_am_end: '<string>',
sunday_pm_start: '<string>',
sunday_pm_end: '<string>',
sunday_am_enabled: true,
sunday_pm_enabled: true,
sunday_deduct_fullday: true
})
};
fetch('https://api.absentify.com/api/v1/members/{id}/schedule', 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://api.absentify.com/api/v1/members/{id}/schedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'from' => '<string>',
'monday_am_start' => '<string>',
'monday_am_end' => '<string>',
'monday_pm_start' => '<string>',
'monday_pm_end' => '<string>',
'monday_am_enabled' => true,
'monday_pm_enabled' => true,
'monday_deduct_fullday' => true,
'tuesday_am_start' => '<string>',
'tuesday_am_end' => '<string>',
'tuesday_pm_start' => '<string>',
'tuesday_pm_end' => '<string>',
'tuesday_am_enabled' => true,
'tuesday_pm_enabled' => true,
'tuesday_deduct_fullday' => true,
'wednesday_am_start' => '<string>',
'wednesday_am_end' => '<string>',
'wednesday_pm_start' => '<string>',
'wednesday_pm_end' => '<string>',
'wednesday_am_enabled' => true,
'wednesday_pm_enabled' => true,
'wednesday_deduct_fullday' => true,
'thursday_am_start' => '<string>',
'thursday_am_end' => '<string>',
'thursday_pm_start' => '<string>',
'thursday_pm_end' => '<string>',
'thursday_am_enabled' => true,
'thursday_pm_enabled' => true,
'thursday_deduct_fullday' => true,
'friday_am_start' => '<string>',
'friday_am_end' => '<string>',
'friday_pm_start' => '<string>',
'friday_pm_end' => '<string>',
'friday_am_enabled' => true,
'friday_pm_enabled' => true,
'friday_deduct_fullday' => true,
'saturday_am_start' => '<string>',
'saturday_am_end' => '<string>',
'saturday_pm_start' => '<string>',
'saturday_pm_end' => '<string>',
'saturday_am_enabled' => true,
'saturday_pm_enabled' => true,
'saturday_deduct_fullday' => true,
'sunday_am_start' => '<string>',
'sunday_am_end' => '<string>',
'sunday_pm_start' => '<string>',
'sunday_pm_end' => '<string>',
'sunday_am_enabled' => true,
'sunday_pm_enabled' => true,
'sunday_deduct_fullday' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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://api.absentify.com/api/v1/members/{id}/schedule"
payload := strings.NewReader("{\n \"from\": \"<string>\",\n \"monday_am_start\": \"<string>\",\n \"monday_am_end\": \"<string>\",\n \"monday_pm_start\": \"<string>\",\n \"monday_pm_end\": \"<string>\",\n \"monday_am_enabled\": true,\n \"monday_pm_enabled\": true,\n \"monday_deduct_fullday\": true,\n \"tuesday_am_start\": \"<string>\",\n \"tuesday_am_end\": \"<string>\",\n \"tuesday_pm_start\": \"<string>\",\n \"tuesday_pm_end\": \"<string>\",\n \"tuesday_am_enabled\": true,\n \"tuesday_pm_enabled\": true,\n \"tuesday_deduct_fullday\": true,\n \"wednesday_am_start\": \"<string>\",\n \"wednesday_am_end\": \"<string>\",\n \"wednesday_pm_start\": \"<string>\",\n \"wednesday_pm_end\": \"<string>\",\n \"wednesday_am_enabled\": true,\n \"wednesday_pm_enabled\": true,\n \"wednesday_deduct_fullday\": true,\n \"thursday_am_start\": \"<string>\",\n \"thursday_am_end\": \"<string>\",\n \"thursday_pm_start\": \"<string>\",\n \"thursday_pm_end\": \"<string>\",\n \"thursday_am_enabled\": true,\n \"thursday_pm_enabled\": true,\n \"thursday_deduct_fullday\": true,\n \"friday_am_start\": \"<string>\",\n \"friday_am_end\": \"<string>\",\n \"friday_pm_start\": \"<string>\",\n \"friday_pm_end\": \"<string>\",\n \"friday_am_enabled\": true,\n \"friday_pm_enabled\": true,\n \"friday_deduct_fullday\": true,\n \"saturday_am_start\": \"<string>\",\n \"saturday_am_end\": \"<string>\",\n \"saturday_pm_start\": \"<string>\",\n \"saturday_pm_end\": \"<string>\",\n \"saturday_am_enabled\": true,\n \"saturday_pm_enabled\": true,\n \"saturday_deduct_fullday\": true,\n \"sunday_am_start\": \"<string>\",\n \"sunday_am_end\": \"<string>\",\n \"sunday_pm_start\": \"<string>\",\n \"sunday_pm_end\": \"<string>\",\n \"sunday_am_enabled\": true,\n \"sunday_pm_enabled\": true,\n \"sunday_deduct_fullday\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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.post("https://api.absentify.com/api/v1/members/{id}/schedule")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"from\": \"<string>\",\n \"monday_am_start\": \"<string>\",\n \"monday_am_end\": \"<string>\",\n \"monday_pm_start\": \"<string>\",\n \"monday_pm_end\": \"<string>\",\n \"monday_am_enabled\": true,\n \"monday_pm_enabled\": true,\n \"monday_deduct_fullday\": true,\n \"tuesday_am_start\": \"<string>\",\n \"tuesday_am_end\": \"<string>\",\n \"tuesday_pm_start\": \"<string>\",\n \"tuesday_pm_end\": \"<string>\",\n \"tuesday_am_enabled\": true,\n \"tuesday_pm_enabled\": true,\n \"tuesday_deduct_fullday\": true,\n \"wednesday_am_start\": \"<string>\",\n \"wednesday_am_end\": \"<string>\",\n \"wednesday_pm_start\": \"<string>\",\n \"wednesday_pm_end\": \"<string>\",\n \"wednesday_am_enabled\": true,\n \"wednesday_pm_enabled\": true,\n \"wednesday_deduct_fullday\": true,\n \"thursday_am_start\": \"<string>\",\n \"thursday_am_end\": \"<string>\",\n \"thursday_pm_start\": \"<string>\",\n \"thursday_pm_end\": \"<string>\",\n \"thursday_am_enabled\": true,\n \"thursday_pm_enabled\": true,\n \"thursday_deduct_fullday\": true,\n \"friday_am_start\": \"<string>\",\n \"friday_am_end\": \"<string>\",\n \"friday_pm_start\": \"<string>\",\n \"friday_pm_end\": \"<string>\",\n \"friday_am_enabled\": true,\n \"friday_pm_enabled\": true,\n \"friday_deduct_fullday\": true,\n \"saturday_am_start\": \"<string>\",\n \"saturday_am_end\": \"<string>\",\n \"saturday_pm_start\": \"<string>\",\n \"saturday_pm_end\": \"<string>\",\n \"saturday_am_enabled\": true,\n \"saturday_pm_enabled\": true,\n \"saturday_deduct_fullday\": true,\n \"sunday_am_start\": \"<string>\",\n \"sunday_am_end\": \"<string>\",\n \"sunday_pm_start\": \"<string>\",\n \"sunday_pm_end\": \"<string>\",\n \"sunday_am_enabled\": true,\n \"sunday_pm_enabled\": true,\n \"sunday_deduct_fullday\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.absentify.com/api/v1/members/{id}/schedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"from\": \"<string>\",\n \"monday_am_start\": \"<string>\",\n \"monday_am_end\": \"<string>\",\n \"monday_pm_start\": \"<string>\",\n \"monday_pm_end\": \"<string>\",\n \"monday_am_enabled\": true,\n \"monday_pm_enabled\": true,\n \"monday_deduct_fullday\": true,\n \"tuesday_am_start\": \"<string>\",\n \"tuesday_am_end\": \"<string>\",\n \"tuesday_pm_start\": \"<string>\",\n \"tuesday_pm_end\": \"<string>\",\n \"tuesday_am_enabled\": true,\n \"tuesday_pm_enabled\": true,\n \"tuesday_deduct_fullday\": true,\n \"wednesday_am_start\": \"<string>\",\n \"wednesday_am_end\": \"<string>\",\n \"wednesday_pm_start\": \"<string>\",\n \"wednesday_pm_end\": \"<string>\",\n \"wednesday_am_enabled\": true,\n \"wednesday_pm_enabled\": true,\n \"wednesday_deduct_fullday\": true,\n \"thursday_am_start\": \"<string>\",\n \"thursday_am_end\": \"<string>\",\n \"thursday_pm_start\": \"<string>\",\n \"thursday_pm_end\": \"<string>\",\n \"thursday_am_enabled\": true,\n \"thursday_pm_enabled\": true,\n \"thursday_deduct_fullday\": true,\n \"friday_am_start\": \"<string>\",\n \"friday_am_end\": \"<string>\",\n \"friday_pm_start\": \"<string>\",\n \"friday_pm_end\": \"<string>\",\n \"friday_am_enabled\": true,\n \"friday_pm_enabled\": true,\n \"friday_deduct_fullday\": true,\n \"saturday_am_start\": \"<string>\",\n \"saturday_am_end\": \"<string>\",\n \"saturday_pm_start\": \"<string>\",\n \"saturday_pm_end\": \"<string>\",\n \"saturday_am_enabled\": true,\n \"saturday_pm_enabled\": true,\n \"saturday_deduct_fullday\": true,\n \"sunday_am_start\": \"<string>\",\n \"sunday_am_end\": \"<string>\",\n \"sunday_pm_start\": \"<string>\",\n \"sunday_pm_end\": \"<string>\",\n \"sunday_am_enabled\": true,\n \"sunday_pm_enabled\": true,\n \"sunday_deduct_fullday\": true\n}"
response = http.request(request)
puts response.read_body"3c90c3cc-0d44-4b50-8888-8dd25736052a"{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}{
"code": "FORBIDDEN",
"message": "Insufficient access",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}Authorizations
Path Parameters
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Body
Date/time in ISO 8601 format, e.g. 2026-06-01 (interpreted as UTC midnight) or 2026-06-01T09:00:00Z. Always include a time zone designator (Z for UTC) when sending a time of day. Localized formats such as 01.06.2026 or 06/01/2026 are misinterpreted and must not be used.
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Work-schedule time of day. Send a full ISO 8601 date-time — only the time of day (hours and minutes, UTC) is used; the date part is ignored (e.g. 1970-01-01T09:00:00Z for 09:00).
Response
Successful response
The response is of type string<uuid>.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Was this page helpful?