Home
Create forum topics
To add a topic to a community forum, send an Atom entry document containing the forum topic to the community forum topics resource.
See Authenticating requests for information about how to authenticate the request.
Atom API request details
Method Resource URI Input representation POST Community forum topics Value of the href attribute of the <link> element with the rel="http://www.ibm.com/xmlns/prod/sn/forum-topics" attribute value for each community. forum topic
Input
Provide a forum topic Atom entry document.The content type of the Atom entry document must be application/atom+xml.
Output
An Atom entry document containing the new forum topic. Returned HTTP Headers
- HTTP/1.1 201 Created
- Indicates that the forum topic was successfully created. If an error occurs, this header will contain one of the error codes below.
- Location: url
- Link to edit_url of the forum topic. You can use the Web address specified here to subsequently retrieve and update the forum topic.
Error codes
- HTTP/1.1 400 Bad Request
- HTTP/1.1 401 Unauthorized
- HTTP/1.1 404 No forum exists: This error is generated when the community does not contain a forum. When you create a community, a forum is created for it by default, but the administrator can remove or hide the forum. See Administering the discussion forum for more details.
Related reference