createForum
Creates a new forum.
Parameters
| Name | Description |
| node_id required | Node ID the forum belongs to. |
| blog_id required | Blog ID (Site ID) the forum belongs to. |
| category_id required | Category ID the forum belongs to. |
| parent_id optional | Forum ID of a subforum’s parent forum. |
| forum_name required | Name of the forum. |
| forum_description optional | Description of the forum. |
| expires optional | Future date the forum should become locked. |
| photo_id optional | Photo ID for the forum. |
| created_by required | User ID of the user creating the forum. |
| user_relation required | User relation of the user making the request. |
| output optional | The response output format. Accepts JSON and XML. |
Request Syntax
| https://services.onesite.com/rest/ugcForum?action=createForum&node_id=188234&blog_id=225642611&category_id=139071&forum_name=My New Forum&created_by=143593317&user_relation=member&devkey=[devkey] |
JSON Response
|
1 2 3 4 5 6 7 |
{ "service":"ugcForum", "action":"createForum", "code":1, "message":"Forum successfully created.", "item":253646 } |
Service Information
| Service | ugcForum |
| Method | createForum |
| Type | REST |
| Response Types | JSON, XML |