| Outdated Please upgrade to the latest version. |
smugmug.subcategories.create
Creates a new subcategory with the given name within a specified category.
Arguments
- string SessionID
- string Name
- integer CategoryID*
Result
- struct SubCategory
- integer id
Fault Codes
- 3 - "invalid session"
- 5 - "system error"
- 16 - "invalid data (message)"
Sample Responses
REST
JSON
PHP
XML-RPC
Labels:
None
2 Comments
comments.show.hideJan 24, 2009
Anonymous
It looks like the wiki formatting of the CategoryID parameter is incorrect. I'm guessing there should have been an asterisk before the "CategoryID" text to make it bold?
Oct 15, 2009
Anonymous
Also, the responses most likely contain SubCategory, not Category. (Nice cut and paste, guys.)
Also, no specific error code for "SubCategory already exists"? Instead I get a generic code 5 ("system error")