API Methods: reviews.editCategory

Description

Edits or creates a new review category


Authentication

This method requires authentication without user credentials.

API Version

Version 2

Required parameters

  • none

Optional parameters

  • field_id :
    the id of the category field
  • field_type :
    the type of field to create or edit
  • field_label :
    the label of the field
  • max_length :
    the maximum amount of characters a field is allowed
  • default_value :
    the default value of a field
  • required :
    whether or not a field is required
  • options_list :
    a list of options for a field, comma separated
  • sequence :
    the sequence of the the fields
  • delete :
    set to 1 and supply a field_id to delete a field
  • category_id :
    the id of the category - Required when using a field_id or a field_type
  • image :
    this is the photo itself which should be encapsulated as part of a multipart/form-data submission via an HTTP POST action. This parameter is required to upload a new photo to the site.
  • image_title :
    the title of the photo
  • image_description :
    the description of the photo
  • user_id :
    Required when adding a photo
  • category_name :
    the name of the category
  • category_description :
    the description of the category
  • parent_category :
    the parent id of the category

Example response

<?xml version="1.0"?>
<response status="ok" time="Wed, 08 Apr 2009 13:38:58 -0500" p="0.043804883956909">
   <review_categories count="1">
       <review_category>
           <category_id>2</category_id>
       </review_category>
   </review_categories>
</response>