β«Updating Sessions
This step shows how to update sessions through GroupsAPI
Parameter
Type
Description
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)Last updated