createCategory
- Home
- Forums
- UgcForumCategory
- createCategory
createCategory
Creates a new message board category.
Parameters
Name | Description |
node_id required | Node ID the forum category belongs to. |
blog_id required | The Blog ID (Site ID) to load a list of categories for. |
category_name required | Name of the new category. |
created_by required | User ID of the user that’s creating the category. |
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/ugcForumCategory?action=createCategory&node_id=188234&blog_id=225642611&category_name=My New Category&created_by=143593317&user_relation=member&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 |
{ "service":"ugcForumCategory", "action":"createCategory", "code":1, "message":"Category successfully created.", "item":150102 } |
Service Information
Service | ugcForumCategory |
Method | createCategory |
Type | REST |
Response Types | JSON, XML |