Required permission: | UpdateApplication |
POST | /DynamicsCRM/Application/Upsert/Multiple |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
open class CRMApplicationUpsertMultipleRequest
{
var applications:ArrayList<CRMApplicationCreateRequest> = ArrayList<CRMApplicationCreateRequest>()
}
open class CRMApplicationCreateRequest
{
var regent_id:Int? = null
var import_id:Int? = null
var application_name:String? = null
var academic_program:String? = null
var start_term:String? = null
var location:String? = null
var addr1:String? = null
var addr2:String? = null
var city:String? = null
var state:String? = null
var country:String? = null
var code:String? = null
var former_name:String? = null
var citizenship:String? = null
var citizenship_other:String? = null
var permanent_resident:String? = null
var spouse_name:String? = null
var children:String? = null
var native_english_speaker:Boolean? = null
var native_language:String? = null
var birth_place:String? = null
var residency_status:String? = null
var language_test_exemption_request_date:Date? = null
var language_test_exemption_decision_date:Date? = null
var language_test_exemption_decision:String? = null
var language_test_comment:String? = null
var language_tests:ArrayList<CRMApplicationLanguageTestCreateRequest> = ArrayList<CRMApplicationLanguageTestCreateRequest>()
var references:ArrayList<CRMApplicationRefereeCreateRequest> = ArrayList<CRMApplicationRefereeCreateRequest>()
var requirements:ArrayList<CRMApplicationRequirementCreateRequest> = ArrayList<CRMApplicationRequirementCreateRequest>()
var education:ArrayList<CRMEducationUpsertRequest> = ArrayList<CRMEducationUpsertRequest>()
var church_attended:String? = null
var pastor_first_name:String? = null
var pastor_last_name:String? = null
var has_impairment:Boolean? = null
var impairment_description:String? = null
var apply_for_financial_aid:Boolean? = null
var financial_description:String? = null
var employment_years:BigDecimal? = null
var employment_description:String? = null
var church_volunteer_years:BigDecimal? = null
var church_volunteer_description:String? = null
var other_volunteer_years:BigDecimal? = null
var other_volunteer_description:String? = null
var accomplishments_description:String? = null
var what_other_graduate_schools_are_you_apply:String? = null
var what_else_interests_you_about_regent:String? = null
var heard_about_regent_from_book:String? = null
var heard_about_regent_from_event:String? = null
var heard_about_regent_from_organization:String? = null
var heard_about_regent_from_person:String? = null
var heard_about_regent_from_website_pub:String? = null
var what_interests_you_about_regent:ArrayList<String> = ArrayList<String>()
var what_else_brought_you_to_regent:String? = null
var start_via_distance_ed:Boolean? = null
var transfer_credits:Boolean? = null
var applicant_comments:String? = null
var cumulative_undergraduate_gpa:BigDecimal? = null
var cumulative_graduate_gpa:BigDecimal? = null
var conditional_admission:Boolean? = null
var conditional_admission_reason:ArrayList<String> = ArrayList<String>()
var admission_notes:String? = null
var admission_decision_notes:String? = null
var withdrawn_reason:String? = null
var submitted:Date? = null
var paid:Date? = null
var reviewed:Date? = null
var completed:Date? = null
var rejected:Date? = null
var admitted:Date? = null
var postponed:Date? = null
var withdrawn:Date? = null
var confirmed:Date? = null
var read_theological_position:Date? = null
var current_status:String? = null
var image_base64:String? = null
var promo_code:String? = null
var added_date:Date? = null
var last_contacted_date:Date? = null
var owning_username:String? = null
}
open class CRMApplicationLanguageTestCreateRequest
{
@SerializedName("type") var Type:String? = null
var test_date:Date? = null
var score:BigDecimal? = null
var applicant_defined:Boolean? = null
var status:String? = null
}
open class CRMApplicationRefereeCreateRequest
{
var import_id:Int? = null
var first_name:String? = null
var last_name:String? = null
var job_title:String? = null
var email:String? = null
var phone:String? = null
@SerializedName("type") var Type:String? = null
var full_name:String? = null
var position:String? = null
var organization:String? = null
var email_from_referee:String? = null
var relationship:String? = null
var relationship_details:String? = null
var personal_evaluation:String? = null
var ability_question_1:Int? = null
var ability_question_2:Int? = null
var ability_question_3:Int? = null
var ability_question_4:Int? = null
var ability_question_5:Int? = null
var ability_question_6:Int? = null
var ability_question_7:Int? = null
var ability_question_8:Int? = null
var ability_question_9:Int? = null
var ability_question_10:Int? = null
var qualify_assessment:String? = null
var recommendation:String? = null
var recommendation_details:String? = null
var is_regent_alum:Boolean? = null
var is_complete:Boolean? = null
var email_sent:Date? = null
var submitted_date:Date? = null
}
open class CRMApplicationRequirementCreateRequest
{
var status:String? = null
var requirement_name:String? = null
var requested_date:Date? = null
var received_date:Date? = null
}
open class CRMEducationUpsertRequest
{
var regent_id:Int? = null
var import_id:Int? = null
var institution_regent_id:Int? = null
var application_guid:String? = null
var degree_status:String? = null
var degree_type:String? = null
var unofficial_institution_name:String? = null
var unofficial_degree_name:String? = null
var degree_name:String? = null
var degree_code:String? = null
var description:String? = null
var major:String? = null
var second_major:String? = null
var cumulative_gpa:BigDecimal? = null
var is_final:Boolean? = null
var is_regis_external_degree:Boolean? = null
var start_year:Int? = null
var end_year:Int? = null
var month_graduated:Int? = null
var year_graduated:Int? = null
var added_date:Date? = null
}
Kotlin CRMApplicationUpsertMultipleRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /DynamicsCRM/Application/Upsert/Multiple HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
applications:
[
{
regent_id: 0,
import_id: 0,
application_name: String,
academic_program: String,
start_term: String,
location: String,
addr1: String,
addr2: String,
city: String,
state: String,
country: String,
code: String,
former_name: String,
citizenship: String,
citizenship_other: String,
permanent_resident: String,
spouse_name: String,
children: String,
native_english_speaker: False,
native_language: String,
birth_place: String,
residency_status: String,
language_test_exemption_request_date: 0001-01-01,
language_test_exemption_decision_date: 0001-01-01,
language_test_exemption_decision: String,
language_test_comment: String,
language_tests:
[
{
type: String,
test_date: 0001-01-01,
score: 0,
applicant_defined: False,
status: String
}
],
references:
[
{
import_id: 0,
first_name: String,
last_name: String,
job_title: String,
email: String,
phone: String,
type: String,
full_name: String,
position: String,
organization: String,
email_from_referee: String,
relationship: String,
relationship_details: String,
personal_evaluation: String,
ability_question_1: 0,
ability_question_2: 0,
ability_question_3: 0,
ability_question_4: 0,
ability_question_5: 0,
ability_question_6: 0,
ability_question_7: 0,
ability_question_8: 0,
ability_question_9: 0,
ability_question_10: 0,
qualify_assessment: String,
recommendation: String,
recommendation_details: String,
is_regent_alum: False,
is_complete: False,
email_sent: 0001-01-01,
submitted_date: 0001-01-01
}
],
requirements:
[
{
status: String,
requirement_name: String,
requested_date: 0001-01-01,
received_date: 0001-01-01
}
],
education:
[
{
regent_id: 0,
import_id: 0,
institution_regent_id: 0,
application_guid: String,
degree_status: String,
degree_type: String,
unofficial_institution_name: String,
unofficial_degree_name: String,
degree_name: String,
degree_code: String,
description: String,
major: String,
second_major: String,
cumulative_gpa: 0,
is_final: False,
is_regis_external_degree: False,
start_year: 0,
end_year: 0,
month_graduated: 0,
year_graduated: 0,
added_date: 0001-01-01
}
],
church_attended: String,
pastor_first_name: String,
pastor_last_name: String,
has_impairment: False,
impairment_description: String,
apply_for_financial_aid: False,
financial_description: String,
employment_years: 0,
employment_description: String,
church_volunteer_years: 0,
church_volunteer_description: String,
other_volunteer_years: 0,
other_volunteer_description: String,
accomplishments_description: String,
what_other_graduate_schools_are_you_apply: String,
what_else_interests_you_about_regent: String,
heard_about_regent_from_book: String,
heard_about_regent_from_event: String,
heard_about_regent_from_organization: String,
heard_about_regent_from_person: String,
heard_about_regent_from_website_pub: String,
what_interests_you_about_regent:
[
String
],
what_else_brought_you_to_regent: String,
start_via_distance_ed: False,
transfer_credits: False,
applicant_comments: String,
cumulative_undergraduate_gpa: 0,
cumulative_graduate_gpa: 0,
conditional_admission: False,
conditional_admission_reason:
[
String
],
admission_notes: String,
admission_decision_notes: String,
withdrawn_reason: String,
submitted: 0001-01-01,
paid: 0001-01-01,
reviewed: 0001-01-01,
completed: 0001-01-01,
rejected: 0001-01-01,
admitted: 0001-01-01,
postponed: 0001-01-01,
withdrawn: 0001-01-01,
confirmed: 0001-01-01,
read_theological_position: 0001-01-01,
current_status: String,
image_base64: String,
promo_code: String,
added_date: 0001-01-01,
last_contacted_date: 0001-01-01,
owning_username: String
}
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } }