AddCategory

Adding a new category.

  • Input data type => object
  • Output data type => object

Input parameters

  1. _session_hash (string)
  2. Required. Session identifier (received during login - doLogin)

  3. name (string)
  4. Required. Category name. Maximum length 255 characters.

  5. parent_id (integer)
  6. Required. Parent identifier for the created category. If it is to be a main category, enter 0 as parent_id.

  7. image (string)
  8. File encoded with base64 method

  9. image_filename (string)
  10. File name containing the image

  11. description (string)
  12. Content of the description.

  13. main_page (integer)
  14. Option Show on main page

  15. is_active (integer)
  16. Active

  17. is_hidden (integer)
  18. Option Hide in category tree

  19. show_children_products (integer)
  20. Option Show products from subcategories

  21. url (string)
  22. Friendly link

Output data

  1. id (integer)
  2. Identifier of the created category.