Try to create own function with code like
$category_data = array(
'group_id' => $this->input->post('group_id'),
'cat_name' => $this->input->post('cat_name'),
'cat_url_title' => $this->input->post('cat_url_title'),
'cat_description' => $this->input->post('cat_description'),
'cat_image' => $this->input->post('cat_image'),
'parent_id' => $this->input->post('parent_id'),
'cat_order' => $this->input->post('cat_order'),
'site_id' => $this->input->post('site_id')
);
$this->db->insert('categories', $category_data);This code from admin_content.php, function category_update() (I don’t test this code “stand-alone”) I think that no such function in the API
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.