Ask a question

Ask a Question
Back to All

How to add moderators and guest speakers to a session

Hi dev team,

I am trying to register a guest speaker and team_member for a session using this api https://developers.livestorm.co/reference/post_sessions-id-people. I am using ruby on rails

i've tried
{
type: 'people',
attributes: {
fields: [
{ id: 'email', value: participant.email },
{ id: 'is_guest_speaker', value: true},
{ id: 'role', value: 'team_member'}
],
},
which gives me an error {"errors"=>[{"title"=>"Unknown Field", "detail"=>"The field 'is_guest_speaker' doesn't exist for the event associated with a0237276-ff97-417f-8ffc-84b172f3e853 session.", "code"=>"422", "status"=>"unprocessable_entity"}, {"title"=>"Unknown Field", "detail"=>"The field 'role' doesn't exist for the event associated with a0237276-ff97-417f-8ffc-84b172f3e853 session.", "code"=>"422", "status"=>"unprocessable_entity"}}

I also tried
{
type: 'people',
attributes: {
role: 'team_member', (i switch this to 'participant' and 'is_guest_speaker: true if i want to add guest speaker)
fields: [
{ id: 'email', value: participant.email }
],
},
is_guest_speaker: false
}

which doesnt give me an error but also doesnt do what I expect it to do.

I notice there is a different API to create moderators and guest speakers. https://developers.livestorm.co/reference/post_users. How do I tell the session to register these users as well