âĢUpdating Sessions
This step shows how to update sessions through GroupsAPI
The below list explains all the available parameters when updating a session.
Parameter
Type
Description
name
string
Session name
description
string
Session description
tags
string
A comma separated list of tags
duration
integer(min: 5)
Session duration
allow_recording
bool
Flag to determine if the session will be recorded
inaccessible_replay
bool
Flag to determine if the session's replay should be inaccessible
You can update the session by passing SESSION_ID as a parameter after all parameters. Example:
curl --location --request PUT 'https://<DOMAIN>/xapi/session/<SESSION_ID>' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"name": "test session ",
"start_date": "2024-09-27T14:00:25.699Z",
"duration": "6",
"options": {
"allow_rating": false,
"chat": {
"offMessageModule": true,
"offGeneralMsging": false
},
"duration": {
"allowExtendTime": false,
"useRemainingTime": true
},
"allow_users_stream_self_cam_mic": false,
}
}'from perculus_sdk.client import APIClient
# API client
client = APIClient()
...
# Update session
session = client.sessions.update_session("<SESSION_ID>",{
"name": "test session",
"start_date": "2024-09-27T14:00:25.699Z",
"duration": "6",
"options": {
"allow_rating": false,
"chat": {
"offMessageModule": true,
"offGeneralMsging": false
},
"duration": {
"allowExtendTime": false,
"useRemainingTime": true
},
"allow_users_stream_self_cam_mic": false,
}
})
print(session)Example Response:
Last updated