create_object

Create object. This will create Top Object if neither ob_top_id nor ob_top_name is provided, or will create child object inside Top Object with parent specified by ob_parent_id or ob_parent_name

Optional parameters will have default values if not specified.

query
create_object
required parameters
(ob_top_name or ob_top_id) to specify Top Object and (ob_name) to specify object name and ob_parent_name to specify parent object
optional parameters
 ob_image,ob_desc,ob_barcode,ob_note,(ob_parent_id or ob_parent_name) to specify parent for this object, or leave empty to be child of Top Object or ob_text1, ob_text2, ob_text3, ob_text4, ob_text5,ob_view_type,ob_inventory,ob_main_funct,ob_funct,ob_modules
response format
ob_top_id;ob_top_name;ob_id;ob_name;ob_desc;ob_image;ob_label;ob_bookmark;ob_note;ob_barcode;ob_lat;ob_lon;ob_seq_num;ob_parent_id;ob_parent_name;ob_text1;ob_text2;ob_text3;ob_text4;ob_text5
parameter reference

ob_top_id – Top Object id, unique

ob_top_name – Top Object name, not unique

ob_id – object id, unique

ob_name – object name, unique across Top Object

ob_desc – object description, not unique

ob_image – icon image used for object must be in format directory_name/icon_name, allowed values are described here: LINK_TO_HELP_PAGE_WITH_ICON_LIST

ob_label – label set for objects, label can be 0 to 5 comma separated, eg: 0,4,5 (first and last two)

ob_label_strict – default 0 means show objects with any of label specified in optional parameter (ob_label), if set to 1 means show objects with all labels set from specified optional parameter (ob_label)

ob_lat – object latitude set on map

ob_lon – object longitude set on map

ob_bookmark – overlay image on object icon

ob_note – Note attached to object

ob_barcode – barcode associated with this object

ob_seq_num – order id, lowest order are displayed at the top of the list

ob_parent_id – id of parent object, if 0 – top level object, if not zero this is ob_id of parent object

ob_parent_name – name of parent object, if set this is ob_name of the parent

ob_text1… ob_text5 – not used in Catchr application, but can be set and retrieved via REST API

ob_view_type – 1-grid, 2-list

ob_inventory – object inventory array comma separated

ob_main_funct – main functions of top object – array 0,1,2,3  “,” is url encoded as %2C – full array 0%2C1%2C2%2C3

ob_funct – functions available for object – array 0,1,2,3 – Labels, Bookmarks, Barcode, Comments

ob_modules – modules available for object – array 0,1,2,3,4,5,6,7 – Follow Me, Location Editor, Photo, Activities, Duplicate/Template, Assignment, Events, Reports