Module: Openapply::Put

Included in:
Client
Defined in:
lib/openapply/put.rb

Overview

Instance Method Summary collapse

Instance Method Details

#update_student_email(oa_id, student_email) ⇒ Object



19
20
21
22
23
# File 'lib/openapply/put.rb', line 19

def update_student_email(oa_id, student_email)
  # url = "#{api_path}#{oa_id}"
  url = "#{api_path}/students/#{oa_id}"
  return oa_answer( url, {student: {email: student_email}})
end

#update_student_id(oa_id, student_id) ⇒ Object

Note:

Update one student’s Student ID (Field in OpenApply must be currently Blank)

PUT https://<school_subdomain>.openapply.com/api/v1/students/1/student_id PUT Data student_id=123456

Parameters:

  • oa_id
    • (Integer) - id of student to update

  • student_id
    • (Integer) - id to put in student_id field



13
14
15
16
17
# File 'lib/openapply/put.rb', line 13

def update_student_id(oa_id, student_id)
  # url = "#{api_path}#{oa_id}"
  url = "#{api_path}/students/#{oa_id}"
  return oa_answer( url, {student: {student_id: student_id}})
end