cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

If your Cloud Collaboration question is not answered quickly, please email devsupport@webex.com for additional help

528
Views
0
Helpful
2
Replies
Highlighted
Beginner

How do I add a host through the XML API?

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.

Everyone's tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Cisco Employee

Re: How do I add a host through the XML API?

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
Highlighted
Contributor

Re: How do I add a host through the XML API?

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.

Highlighted
Cisco Employee

Re: How do I add a host through the XML API?

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

CreatePlease to create content