Updating an owner or moderator of a stand-alone forum
Added by IBM contributorIBM | Edited by Elizabeth J Bowling on October 24, 2016
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.

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
string No The UUID of the forum.
string No The short ID of the user you want to update. Use the <link rel="edit"> URI to retrieve the full content of the member entry so that you can update it.
Code Description
OK. Indicates that the member was successfully updated. If an error occurs, this header contains one of the error codes.
Bad Request.
Not Found.
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">
	<category scheme="http://www.ibm.com/xmlns/prod/sn/type" term="person" />
	<title type="text">Ignored</title>

Response returned by the server
HTTP/1.1 200 OK