title: Rest API to update
body: <p>I'm working with codeigniter REST API. I want to update table with Update API but getting error.</p>
  
  <p><strong>Here is my API code:</strong></p>
  
  <pre><code>public function data_put(){
  
      $data = $this-&gt;input-&gt;input_stream();
      $this-&gt;User_model-&gt;updateuser($data);
      $message = [
          'firstname' =&gt; $data['firstname'], 
          'lastname' =&gt; $data['lastname'],
          'email'=&gt; $data['email'],
          'phone'=&gt; $data['phone'],
          'address' =&gt; $data['address'],
          'city' =&gt; $data['city'],
          'state' =&gt; $data['state'],
          'country' =&gt; $data['country'],
          'postalcode' =&gt; $data['postalcode']         
  
      ];
      $this-&gt;set_response($message, REST_Controller::HTTP_CREATED); 
   }
  </code></pre>
  
  <p><strong>Model:</strong></p>
  
  <pre><code>public function updateuser($data){  
  
      $imp = "'" . implode("','", $data) . "'";
      $this-&gt;db-&gt;query("CALL spupdateuser($imp)"); 
  
  }
  </code></pre>
  
  <p><strong>Error</strong>
  Incorrect number of arguments for PROCEDURE table.spupdateuser; expected 10, got 1</p>