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. See Retrieving a stand-alone forum owner or moderator programmatically
for more information. If you want to change a person's role from owner or moderator back to a standard member, see Deleting an owner or moderator from a stand-alone forum programmatically
See Authenticating requests
for information about how to authenticate the request.
Table 1. Atom API request details
|PUT||member||Value of the href attribute of the <link> element that has a rel="edit" attribute value for each entry in the members feed.||member|
Provide a member Atom entry document.
The content type of the Atom entry document must be application/atom+xml
To change a person's role, edit the value of the <snx:role> element in the member Atom entry document.
Returned HTTP headers
HTTP/1.1 200 OK
Indicates that the member was successfully updated. If an error occurs, this header contains one of the error codes.Error codes
- HTTP/1.1 400 Bad Request
- HTTP/1.1 403 Forbidden
- HTTP/1.1 404 Not Found
For example, to change a forum owner to a forum moderator, send the following HTTP request:
Authorization: Basic xxx
<category scheme="http://www.ibm.com/xmlns/prod/sn/type" term="person" />
Parent topic: Working with stand-alone forum members
Member entry content