Skip to end of metadata
Go to start of metadata
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
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Jan 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?

  2. 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")