Create a holiday schedule
curl --request POST \
--url https://www.ruddr.io/api/workspace/holiday-schedules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"isActive": true,
"holidayIds": [
"<string>"
]
}
'import requests
url = "https://www.ruddr.io/api/workspace/holiday-schedules"
payload = {
"name": "<string>",
"isActive": True,
"holidayIds": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', isActive: true, holidayIds: ['<string>']})
};
fetch('https://www.ruddr.io/api/workspace/holiday-schedules', 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://www.ruddr.io/api/workspace/holiday-schedules",
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([
'name' => '<string>',
'isActive' => true,
'holidayIds' => [
'<string>'
]
]),
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://www.ruddr.io/api/workspace/holiday-schedules"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"isActive\": true,\n \"holidayIds\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://www.ruddr.io/api/workspace/holiday-schedules")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"isActive\": true,\n \"holidayIds\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.ruddr.io/api/workspace/holiday-schedules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"isActive\": true,\n \"holidayIds\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "a7e3c814-2f59-4b06-91d3-e8c4f0a27b16",
"name": "UK Bank Holidays",
"isActive": true,
"createdAt": "2026-02-18T09:41:23.719Z",
"holidays": [
{
"id": "d1b94f37-8c62-4e0a-a5d3-f7e2c0b18a94",
"name": "Boxing Day"
},
{
"id": "6c8e2a45-f1d7-4b39-80e6-a3d9c5f72b18",
"name": "Christmas Day"
},
{
"id": "b2f7e493-1d08-4c6a-95e3-a8d0f4c72e51",
"name": "New Year's Day"
}
]
}Holiday Schedules
Create a holiday schedule
POST
/
holiday-schedules
Create a holiday schedule
curl --request POST \
--url https://www.ruddr.io/api/workspace/holiday-schedules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"isActive": true,
"holidayIds": [
"<string>"
]
}
'import requests
url = "https://www.ruddr.io/api/workspace/holiday-schedules"
payload = {
"name": "<string>",
"isActive": True,
"holidayIds": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', isActive: true, holidayIds: ['<string>']})
};
fetch('https://www.ruddr.io/api/workspace/holiday-schedules', 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://www.ruddr.io/api/workspace/holiday-schedules",
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([
'name' => '<string>',
'isActive' => true,
'holidayIds' => [
'<string>'
]
]),
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://www.ruddr.io/api/workspace/holiday-schedules"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"isActive\": true,\n \"holidayIds\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://www.ruddr.io/api/workspace/holiday-schedules")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"isActive\": true,\n \"holidayIds\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.ruddr.io/api/workspace/holiday-schedules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"isActive\": true,\n \"holidayIds\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "a7e3c814-2f59-4b06-91d3-e8c4f0a27b16",
"name": "UK Bank Holidays",
"isActive": true,
"createdAt": "2026-02-18T09:41:23.719Z",
"holidays": [
{
"id": "d1b94f37-8c62-4e0a-a5d3-f7e2c0b18a94",
"name": "Boxing Day"
},
{
"id": "6c8e2a45-f1d7-4b39-80e6-a3d9c5f72b18",
"name": "Christmas Day"
},
{
"id": "b2f7e493-1d08-4c6a-95e3-a8d0f4c72e51",
"name": "New Year's Day"
}
]
}A named set of holidays that can be applied to workspace members. This allows different holiday observances per country or region.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
⌘I