regis

<back to all web services

CRMApplicationUpsertMultipleRequest

Requires Authentication
Required permission:UpdateApplication
The following routes are available for this service:
POST/DynamicsCRM/Application/Upsert/Multiple
import Foundation
import ServiceStack

public class CRMApplicationUpsertMultipleRequest : Codable
{
    public var applications:[CRMApplicationCreateRequest] = []

    required public init(){}
}

public class CRMApplicationCreateRequest : Codable
{
    public var regent_id:Int
    public var import_id:Int
    public var application_name:String
    public var academic_program:String
    public var start_term:String
    public var location:String
    public var addr1:String
    public var addr2:String
    public var city:String
    public var state:String
    public var country:String
    public var code:String
    public var former_name:String
    public var citizenship:String
    public var citizenship_other:String
    public var permanent_resident:String
    public var spouse_name:String
    public var children:String
    public var native_english_speaker:Bool
    public var native_language:String
    public var birth_place:String
    public var residency_status:String
    public var language_test_exemption_request_date:Date?
    public var language_test_exemption_decision_date:Date?
    public var language_test_exemption_decision:String
    public var language_test_comment:String
    public var language_tests:[CRMApplicationLanguageTestCreateRequest] = []
    public var references:[CRMApplicationRefereeCreateRequest] = []
    public var requirements:[CRMApplicationRequirementCreateRequest] = []
    public var education:[CRMEducationUpsertRequest] = []
    public var church_attended:String
    public var pastor_first_name:String
    public var pastor_last_name:String
    public var has_impairment:Bool
    public var impairment_description:String
    public var apply_for_financial_aid:Bool
    public var financial_description:String
    public var employment_years:Double?
    public var employment_description:String
    public var church_volunteer_years:Double?
    public var church_volunteer_description:String
    public var other_volunteer_years:Double?
    public var other_volunteer_description:String
    public var accomplishments_description:String
    public var what_other_graduate_schools_are_you_apply:String
    public var what_else_interests_you_about_regent:String
    public var heard_about_regent_from_book:String
    public var heard_about_regent_from_event:String
    public var heard_about_regent_from_organization:String
    public var heard_about_regent_from_person:String
    public var heard_about_regent_from_website_pub:String
    public var what_interests_you_about_regent:[String] = []
    public var what_else_brought_you_to_regent:String
    public var start_via_distance_ed:Bool
    public var transfer_credits:Bool
    public var applicant_comments:String
    public var cumulative_undergraduate_gpa:Double?
    public var cumulative_graduate_gpa:Double?
    public var conditional_admission:Bool
    public var conditional_admission_reason:[String] = []
    public var admission_notes:String
    public var admission_decision_notes:String
    public var withdrawn_reason:String
    public var submitted:Date?
    public var paid:Date?
    public var reviewed:Date?
    public var completed:Date?
    public var rejected:Date?
    public var admitted:Date?
    public var postponed:Date?
    public var withdrawn:Date?
    public var confirmed:Date?
    public var read_theological_position:Date?
    public var current_status:String
    public var image_base64:String
    public var promo_code:String
    public var added_date:Date
    public var last_contacted_date:Date?
    public var owning_username:String

    required public init(){}
}

public class CRMApplicationLanguageTestCreateRequest : Codable
{
    public var type:String
    public var test_date:Date?
    public var score:Double?
    public var applicant_defined:Bool
    public var status:String

    required public init(){}
}

public class CRMApplicationRefereeCreateRequest : Codable
{
    public var import_id:Int
    public var first_name:String
    public var last_name:String
    public var job_title:String
    public var email:String
    public var phone:String
    public var type:String
    public var full_name:String
    public var position:String
    public var organization:String
    public var email_from_referee:String
    public var relationship:String
    public var relationship_details:String
    public var personal_evaluation:String
    public var ability_question_1:Int?
    public var ability_question_2:Int?
    public var ability_question_3:Int?
    public var ability_question_4:Int?
    public var ability_question_5:Int?
    public var ability_question_6:Int?
    public var ability_question_7:Int?
    public var ability_question_8:Int?
    public var ability_question_9:Int?
    public var ability_question_10:Int?
    public var qualify_assessment:String
    public var recommendation:String
    public var recommendation_details:String
    public var is_regent_alum:Bool
    public var is_complete:Bool
    public var email_sent:Date?
    public var submitted_date:Date?

    required public init(){}
}

public class CRMApplicationRequirementCreateRequest : Codable
{
    public var status:String
    public var requirement_name:String
    public var requested_date:Date?
    public var received_date:Date?

    required public init(){}
}

public class CRMEducationUpsertRequest : Codable
{
    public var regent_id:Int
    public var import_id:Int?
    public var institution_regent_id:Int?
    public var application_guid:String
    public var degree_status:String
    public var degree_type:String
    public var unofficial_institution_name:String
    public var unofficial_degree_name:String
    public var degree_name:String
    public var degree_code:String
    public var Description:String
    public var major:String
    public var second_major:String
    public var cumulative_gpa:Double?
    public var is_final:Bool
    public var is_regis_external_degree:Bool
    public var start_year:Int?
    public var end_year:Int?
    public var month_graduated:Int?
    public var year_graduated:Int?
    public var added_date:Date?

    required public init(){}
}


Swift CRMApplicationUpsertMultipleRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + 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
	}
}