We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE Channel entries API - update_entry issue

Development and Programming

codeM's avatar
codeM
51 posts
14 years ago
codeM's avatar codeM

Hello, did a fair amount of research and still having issues with the following :

$this->EE->load->library('api');
$this->EE->api->instantiate('channel_entries');
$this->EE->api->instantiate('channel_fields');  
...

$this->EE->api_channel_entries->update_entry(1257,$data)

Always throws an error : Could not create/update entry. Missing api parameter.

The entry_id is valid = 1257

The $data array built works fine with API’s submit_new_entry method and is populated as follows :

Array
(
    [site_id] => 1
    [title] => 2 Ch. des Cactus
    [url_title] => M999999
    [entry_date] => 2012-01-02 13:11
    [field_id_66] => M99999
    [field_id_67] => 2 Ch. des Cactus
    [field_id_69] => $699,000
    [field_id_70] => no


)

Thanks for any help and happy new year btw 😊

Version info : ExpressionEngine v2.3.1 - Build: date 20111017

       
Kyle Cotter's avatar
Kyle Cotter
730 posts
14 years ago
Kyle Cotter's avatar Kyle Cotter

Hey codeM,

Unfortunately, we are unable to provide support for extending ExpressionEngine by means of custom add-on development.

What I can do though, is move this thread over to our “Development and Programming” forum, so other devs can lend you a hand.

Thanks!

       
Rob Sanchez's avatar
Rob Sanchez
335 posts
14 years ago
Rob Sanchez's avatar Rob Sanchez

What you’re missing is the channel_id in your $data array. Add that and I think it’ll work.

       
codeM's avatar
codeM
51 posts
14 years ago
codeM's avatar codeM

Documentation on the API says you only need the entry_id I believe but makes sense, i’ll try that Robert , Thanks. 😊

       
skyronic's avatar
skyronic
1 posts
12 years ago
skyronic's avatar skyronic

did it work…..bcos for me….it isn’t….it shows “Error- Missing API parameter”

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.