Update Session
curl --request PATCH \
--url https://api.series.hr/sessions/update/{sessionId} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"Title": "<string>",
"Description": "<string>",
"Host": "<string>",
"CoHost": "<string>",
"Supervisor": "<string>",
"Scheduled": "2023-11-07T05:31:56Z",
"Duration": 2,
"Claimable": true,
"CustomRoles": [
{
"name": "<string>",
"slots": 5,
"minRank": 1,
"permissions": {
"ChangeSessionStatus": true,
"PassOrFailAttendees": true,
"ModifyAttendance": true
}
}
]
}
'import requests
url = "https://api.series.hr/sessions/update/{sessionId}"
payload = {
"Title": "<string>",
"Description": "<string>",
"Host": "<string>",
"CoHost": "<string>",
"Supervisor": "<string>",
"Scheduled": "2023-11-07T05:31:56Z",
"Duration": 2,
"Claimable": True,
"CustomRoles": [
{
"name": "<string>",
"slots": 5,
"minRank": 1,
"permissions": {
"ChangeSessionStatus": True,
"PassOrFailAttendees": True,
"ModifyAttendance": True
}
}
]
}
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
Title: '<string>',
Description: '<string>',
Host: '<string>',
CoHost: '<string>',
Supervisor: '<string>',
Scheduled: '2023-11-07T05:31:56Z',
Duration: 2,
Claimable: true,
CustomRoles: [
{
name: '<string>',
slots: 5,
minRank: 1,
permissions: {ChangeSessionStatus: true, PassOrFailAttendees: true, ModifyAttendance: true}
}
]
})
};
fetch('https://api.series.hr/sessions/update/{sessionId}', 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.series.hr/sessions/update/{sessionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'Title' => '<string>',
'Description' => '<string>',
'Host' => '<string>',
'CoHost' => '<string>',
'Supervisor' => '<string>',
'Scheduled' => '2023-11-07T05:31:56Z',
'Duration' => 2,
'Claimable' => true,
'CustomRoles' => [
[
'name' => '<string>',
'slots' => 5,
'minRank' => 1,
'permissions' => [
'ChangeSessionStatus' => true,
'PassOrFailAttendees' => true,
'ModifyAttendance' => true
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apikey: <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.series.hr/sessions/update/{sessionId}"
payload := strings.NewReader("{\n \"Title\": \"<string>\",\n \"Description\": \"<string>\",\n \"Host\": \"<string>\",\n \"CoHost\": \"<string>\",\n \"Supervisor\": \"<string>\",\n \"Scheduled\": \"2023-11-07T05:31:56Z\",\n \"Duration\": 2,\n \"Claimable\": true,\n \"CustomRoles\": [\n {\n \"name\": \"<string>\",\n \"slots\": 5,\n \"minRank\": 1,\n \"permissions\": {\n \"ChangeSessionStatus\": true,\n \"PassOrFailAttendees\": true,\n \"ModifyAttendance\": true\n }\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("apikey", "<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.patch("https://api.series.hr/sessions/update/{sessionId}")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"Title\": \"<string>\",\n \"Description\": \"<string>\",\n \"Host\": \"<string>\",\n \"CoHost\": \"<string>\",\n \"Supervisor\": \"<string>\",\n \"Scheduled\": \"2023-11-07T05:31:56Z\",\n \"Duration\": 2,\n \"Claimable\": true,\n \"CustomRoles\": [\n {\n \"name\": \"<string>\",\n \"slots\": 5,\n \"minRank\": 1,\n \"permissions\": {\n \"ChangeSessionStatus\": true,\n \"PassOrFailAttendees\": true,\n \"ModifyAttendance\": true\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.series.hr/sessions/update/{sessionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"Title\": \"<string>\",\n \"Description\": \"<string>\",\n \"Host\": \"<string>\",\n \"CoHost\": \"<string>\",\n \"Supervisor\": \"<string>\",\n \"Scheduled\": \"2023-11-07T05:31:56Z\",\n \"Duration\": 2,\n \"Claimable\": true,\n \"CustomRoles\": [\n {\n \"name\": \"<string>\",\n \"slots\": 5,\n \"minRank\": 1,\n \"permissions\": {\n \"ChangeSessionStatus\": true,\n \"PassOrFailAttendees\": true,\n \"ModifyAttendance\": true\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_bodySessions
Update Session
Update an existing session
PATCH
/
sessions
/
update
/
{sessionId}
Update Session
curl --request PATCH \
--url https://api.series.hr/sessions/update/{sessionId} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"Title": "<string>",
"Description": "<string>",
"Host": "<string>",
"CoHost": "<string>",
"Supervisor": "<string>",
"Scheduled": "2023-11-07T05:31:56Z",
"Duration": 2,
"Claimable": true,
"CustomRoles": [
{
"name": "<string>",
"slots": 5,
"minRank": 1,
"permissions": {
"ChangeSessionStatus": true,
"PassOrFailAttendees": true,
"ModifyAttendance": true
}
}
]
}
'import requests
url = "https://api.series.hr/sessions/update/{sessionId}"
payload = {
"Title": "<string>",
"Description": "<string>",
"Host": "<string>",
"CoHost": "<string>",
"Supervisor": "<string>",
"Scheduled": "2023-11-07T05:31:56Z",
"Duration": 2,
"Claimable": True,
"CustomRoles": [
{
"name": "<string>",
"slots": 5,
"minRank": 1,
"permissions": {
"ChangeSessionStatus": True,
"PassOrFailAttendees": True,
"ModifyAttendance": True
}
}
]
}
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
Title: '<string>',
Description: '<string>',
Host: '<string>',
CoHost: '<string>',
Supervisor: '<string>',
Scheduled: '2023-11-07T05:31:56Z',
Duration: 2,
Claimable: true,
CustomRoles: [
{
name: '<string>',
slots: 5,
minRank: 1,
permissions: {ChangeSessionStatus: true, PassOrFailAttendees: true, ModifyAttendance: true}
}
]
})
};
fetch('https://api.series.hr/sessions/update/{sessionId}', 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.series.hr/sessions/update/{sessionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'Title' => '<string>',
'Description' => '<string>',
'Host' => '<string>',
'CoHost' => '<string>',
'Supervisor' => '<string>',
'Scheduled' => '2023-11-07T05:31:56Z',
'Duration' => 2,
'Claimable' => true,
'CustomRoles' => [
[
'name' => '<string>',
'slots' => 5,
'minRank' => 1,
'permissions' => [
'ChangeSessionStatus' => true,
'PassOrFailAttendees' => true,
'ModifyAttendance' => true
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apikey: <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.series.hr/sessions/update/{sessionId}"
payload := strings.NewReader("{\n \"Title\": \"<string>\",\n \"Description\": \"<string>\",\n \"Host\": \"<string>\",\n \"CoHost\": \"<string>\",\n \"Supervisor\": \"<string>\",\n \"Scheduled\": \"2023-11-07T05:31:56Z\",\n \"Duration\": 2,\n \"Claimable\": true,\n \"CustomRoles\": [\n {\n \"name\": \"<string>\",\n \"slots\": 5,\n \"minRank\": 1,\n \"permissions\": {\n \"ChangeSessionStatus\": true,\n \"PassOrFailAttendees\": true,\n \"ModifyAttendance\": true\n }\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("apikey", "<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.patch("https://api.series.hr/sessions/update/{sessionId}")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"Title\": \"<string>\",\n \"Description\": \"<string>\",\n \"Host\": \"<string>\",\n \"CoHost\": \"<string>\",\n \"Supervisor\": \"<string>\",\n \"Scheduled\": \"2023-11-07T05:31:56Z\",\n \"Duration\": 2,\n \"Claimable\": true,\n \"CustomRoles\": [\n {\n \"name\": \"<string>\",\n \"slots\": 5,\n \"minRank\": 1,\n \"permissions\": {\n \"ChangeSessionStatus\": true,\n \"PassOrFailAttendees\": true,\n \"ModifyAttendance\": true\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.series.hr/sessions/update/{sessionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"Title\": \"<string>\",\n \"Description\": \"<string>\",\n \"Host\": \"<string>\",\n \"CoHost\": \"<string>\",\n \"Supervisor\": \"<string>\",\n \"Scheduled\": \"2023-11-07T05:31:56Z\",\n \"Duration\": 2,\n \"Claimable\": true,\n \"CustomRoles\": [\n {\n \"name\": \"<string>\",\n \"slots\": 5,\n \"minRank\": 1,\n \"permissions\": {\n \"ChangeSessionStatus\": true,\n \"PassOrFailAttendees\": true,\n \"ModifyAttendance\": true\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyUpdate an existing session with new details. All fields are optional — only include the fields you want to change.
Request
curl -X PATCH https://api.series.hr/sessions/update/session_abc123 \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"Title": "Advanced Training Session",
"Duration": 120,
"CustomRoles": [
{
"name": "Trainer",
"slots": 3,
"minRank": 25,
"permissions": {
"ChangeSessionStatus": false,
"PassOrFailAttendees": true,
"ModifyAttendance": true
}
}
]
}'
Parameters
string
required
The session ID to update
string
Updated session title
string
Updated session description
string
Updated host Roblox user ID
string
Updated co-host Roblox user ID
string
Updated supervisor Roblox user ID
string
Updated ISO 8601 scheduled start time
integer
Updated session duration in minutes (must be a positive integer)
boolean
Updated claimable status
array
Updated custom role definitions (Premium/Enterprise only). Replaces all existing custom roles. Send an empty array
[] to remove all custom roles. Each role object has:name(string, required): Role name (must be unique, cannot be “Host”, “CoHost”, or “Supervisor”)slots(integer, required): Number of slots (1-10)minRank(integer, optional): Minimum rank requirement (default: 0)permissions(object, optional): Role permissionsChangeSessionStatus(boolean): Can start/delay/cancel/end the sessionPassOrFailAttendees(boolean): Can mark attendees as passed/failedModifyAttendance(boolean): Can manage the attendance list
Response
{
"success": true,
"data": {
"SessionId": "session_abc123"
}
}
Setting
CustomRoles replaces all existing custom roles and their slot assignments. Users who previously claimed slots will need to re-claim them.Authorizations
Pass your API key in the apikey header. Alternatively, the x-api-key header is also accepted.
Path Parameters
The session ID to update
Body
application/json
Updated session title
Updated description
Updated host user ID
Updated co-host user ID
Updated supervisor user ID
Updated scheduled time
Updated duration in minutes
Required range:
x >= 1Updated claimable status
Updated custom role definitions (Premium/Enterprise only). Replaces all existing custom roles.
Show child attributes
Show child attributes
Response
Session updated
⌘I

