Updating an owner or moderator of a stand-alone forum
Added by IBM contributorIBM | Edited by Claudia R Elbourn on June 15, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

To change the role of a member in a stand-alone forum from owner to moderator or the other way around, send an updated member document in Atom format to the existing member's edit web address.
All existing member entry metadata will be replaced with the new data. To avoid deleting data, retrieve the person's member entry document first, and send it back with this request.

To change a person's role, edit the value of the <snx:role> element in the member Atom entry document.

Input
Method URI Description
PUT /forums/atom/acl Value of the href attribute of the <link> element that has a rel="edit" attribute value for each entry in the members feed.
Content Type: application/atom+xml
Name Type Optional Description
forumUuid
string No The UUID of the forum.
userid
string No ID of the user you wish to update
Output
Code Description
200
OK. Indicates that the member was successfully updated. If an error occurs, this header contains one of the error codes.
400
Bad Request.
403
Forbidden.
404
Not Found.
Examples
r example, to change a forum owner to a forum moderator, send the following HTTP request:
PUT /forums/atom/acl?forumUuid=1A1GC0A80221E5C54FA8D3BE4D1E1B000032&
	userid=772A006E-0A01-8703-8525-7346003DAFD6 HTTP/1.1
	Host: www.example.com
	Content-Type: application/atom+xml
	Content-Length: nnn
	Authorization: Basic xxx
	
	<entry xmlns="http://www.w3.org/2005/Atom">
	<id>Ignored</id>
	<contributor>
	<email>sancho@example.com</email>
	<snx:userid>772A006E-0A01-8703-8525-7346003DAFD6</snx:userid>
	<snx:userState>active</snx:userState>
	<name>Sancho</name>
	</contributor>
	<category scheme="http://www.ibm.com/xmlns/prod/sn/type" term="person" />
	<snx:role
	xmlns:snx="http://www.ibm.com/xmlns/prod/sn"
	component="http://www.ibm.com/xmlns/prod/sn/forums">
	moderator
	</snx:role>
	<title type="text">Ignored</title>
	</entry>

Response returned by the server
HTTP/1.1 200 OK