cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2029
Views
0
Helpful
2
Replies

How do I add a host through the XML API?

Nicholas1
Level 1
Level 1

I have been able to successfully add attendees using a RegisterMeetingAttendee command.  I believe this is correct, although I'm still hoping to hear back via this post: What is the difference between CreateMeetingAttendee and RegisterMeetingAttendee?

However, when I try to use this call to create a host for a meeting, I get an error message:

<serv:reason>The role is not supported for adding specified attendee to session</serv:reason><serv:gsbStatus>PRIMARY</serv:gsbStatus>

<serv:exceptionID>040007</serv:exceptionID>

The original call was:

<?xml version="1.0" encoding="ISO-8859-1"?>

<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

   

    <header>

        <securityContext>

            <webExID>[MyID]</webExID>

            <password>[MyPassword]</password>

            <siteID>[MySiteID]</siteID>

            <siteName>[MySiteName]</siteName>

        </securityContext>

    </header>

<body>

        <bodyContent xsi:type="java:com.webex.service.binding.attendee.RegisterMeetingAttendee">

            <attendees>

                <person>

                    <name>Nicholas 2</name>

                    <title></title>

                    <company>test</company>

                    <email>nicholas+2@projectmanagement.com</email>

                    <notes>test</notes>

                    <type>VISITOR</type>

                </person>

                <joinStatus>ACCEPT</joinStatus>

                <role>HOST</role>

                <emailInvitations>false</emailInvitations>

                <sessionKey>731435805</sessionKey>

            </attendees>

        </bodyContent>

</body>

</serv:message>

Why am I receiving this message?  "HOST" is a valid role per the docs.  This auth header has been used successfully on other calls, and this exact code has worked for adding simple attendees.

1 Accepted Solution

Accepted Solutions

nmorrow
Cisco Employee
Cisco Employee

Alternate host is invited, not registered. You can invite an alternate host using CreateMeetingAttendee, while setting the role element to HOST. In this case, the attendee email address must match the email address for an active host account on the site.

View solution in original post

2 Replies 2

ryanhunt
Level 5
Level 5

You'll need to use SetMeeting to add an alternate host element: otherHostWebExID

Hosts are not considered Attendees, so the command your using cannot add a host.

nmorrow
Cisco Employee
Cisco Employee

Alternate host is invited, not registered. You can invite an alternate host using CreateMeetingAttendee, while setting the role element to HOST. In this case, the attendee email address must match the email address for an active host account on the site.