Prevail API: Edit Sessions
Edit Sessions (Self-Service)
PATCH https://prevail.ai/api/v1/sessions/[:remote_session_id]
Makes changes to a Session previously created by your Organization. The Session must belong to the Organization attempting to edit it and be in a state
of scheduled
or ready
. Your Organization must have Self-Service enabled to use this request to directly schedule Sessions. Only Prevail Staff can enable Self-Service for your Organization.
- To update any of
start_date
,start_time
, ortime_zone
, all three options must be included.
Query Parameters
remote_session_id string required
The unique identifier for the Session you want to edit.
- You can retrieve the
remote_session_id
by using the GET Sessions endpoint, which returns a list of Sessions and their IDs.
Request Body Parameters
Authorization
Bearer Token {{jwt_signed}}
Used to authenticate the request. Replace with your access token.
Headers
Content-Type application/json
Specifies the format of the request body.
Accept application/json
Specifies the format of the response body.
Example Request
PATCH https://prevail.ai/api/v1/sessions/example-remote-session-id
{
"headers": {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json",
"Accept": "application/json"
},
"remote_session": {
"title": "Example Remote Session Edited", // Edit Session title
"start_time": "02:30 PM", // Edit start date and time
"start_date": "2025-01-30", // Edit start date and time
"time_zone": "Pacific Time (US & Canada)", // Edit start date and time
"invites": ["amethyst@example.com"] // Add a participant email
}
}
Example Response
{
"sessions": [
{
"remote_session_id": "example-remote-session-id", // remote_session_id does not change
"title": "Example Remote Session Edited", // Session title updated
"start_date": "2025-01-30", // start_date updated
"start_time": "02:30 PM", // start_time updated
"time_zone": "Pacific Time (US & Canada)",
"state": "ready",
"estimated_duration": 3.5,
"transcript_status": "in_progress",
"invites": [
"quartz@example.com",
"obsidian@example.com",
"amethyst@example.com" // Participant email added to Session
],
"provider_specific_details": { // provider_specific_details does not change
"meeting_id": 97969731904,
"password": "ysitdagyst",
"provider_join_url": "https://zoom.us/j/97969731904?pwd=MhujrdD4UXWIeubEbPJhDbhKs1VT0P.1",
"prevail_join_url": "https://staging.prevail.ai/sessions/example-remote-session/zoom_meeting"
}
}
]
}