lib/ps_utilities/pre_built_post.rb
def update_students(params)
      action = "UPDATE"
      kids_api_array = build_kids_api_array(action, params)
      return kids_api_array     if kids_api_array.empty?

      options  = { body: { students: { student: kids_api_array } }.to_json }
      answer = api(:post, "/ws/v1/student", options)
      return answer.parsed_response   if answer.code.to_s.eql? "200"
      return {"errorMessage"=>"#{answer.response}"}
    end
# this updates and existing student record within PowerSchool
# (see #create_students)
# @note update_students REQUIRED params are: **:id** (dcid) and **:student_id** (local_id)
# @note update_students INVALID (ignored) params are: :grade_level, :entry_date, :exit_date, :school_number, :school_id
this updates and existing student record within PowerSchool
this updates and existing student record within PowerSchool
def update_students(params)
      action = "UPDATE"
      kids_api_array = build_kids_api_array(action, params)
      return kids_api_array     if kids_api_array.empty?
      options  = { body: { students: { student: kids_api_array } }.to_json }
      answer = api(:post, "/ws/v1/student", options)
      return answer.parsed_response   if answer.code.to_s.eql? "200"
      return {"errorMessage"=>"#{answer.response}"}
    end
def update_students ( params ) action = "UPDATE" kids_api_array = build_kids_api_array ( action , params ) return kids_api_array if kids_api_array . empty? options = { body : { students : { student : kids_api_array } } . to_json } answer = api ( :post , "/ws/v1/student" , options ) return answer . parsed_response if answer . code . to_s . eql? "200" return { "errorMessage" => "#{answer.response}" } end
this updates and existing student record within PowerSchool
(see #create_students)
this updates and existing student record within PowerSchool ( see #create_students )
params
note
update_students REQUIRED params are: **:id** (dcid) and **:student_id** (local_id)
update_students REQUIRED params are : ** : id ** ( dcid ) and ** : student_id ** ( local_id )
note
update_students INVALID (ignored) params are: :grade_level, :entry_date, :exit_date, :school_number, :school_id
update_students INVALID ( ignored ) params are : : grade_level : entry_date : exit_date : school_number : school_id