addCategory

Previous page  First page  Next page

Description

Adds a new category to the specified blog.

 

 

Syntax

bw.addCategory(blog_id, username, password, params)

 

 

Request Fields

 

blog_id - The ID of the blog to which you want to add a category.

 

username - Your reseller account username.

 

password - Your reseller account password.

 

params - params must be a hash with the following required keys:

parent_cat_id - parent_cat_id must be a valid cat_id (category id) retrieved from bw.getCategories().

type - Allowed values "article" or "photo".

label - The name of the new category.

 

 

Response Fields

Returns TRUE on success.