regis

<back to all web services

CRMContactUpdateRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
POST/DynamicsCRM/Contact/{guid}/Update

export class CRMContactUpdateRequest
{
    public guid: string;
    public regent_id: number;
    public first_name: string;
    public last_name: string;
    public middle_name: string;
    public preferred_name: string;
    public prefix: string;
    public addressee: string;
    public primary_salutation: string;
    public former_name: string;
    public spouse_name: string;
    public spouse_is_main_contact: boolean;
    public addr1: string;
    public addr2: string;
    public city: string;
    public state: string;
    public country: string;
    public code: string;
    public dob?: string;
    public deceased_date?: string;
    public citizenship: string;
    public citizenship_other: string;
    public permanent_resident: string;
    public denomination: string;
    public connection_to_regent: string;
    public student_segment: string;
    public reason_added: string;
    public gender: string;
    public marital_status: string;
    public financial_aid_received: boolean;
    public is_applicant: boolean;
    public solicitation_method: string;
    public solicitation_exceptions: string;
    public campaign_monitor_optin: boolean;
    public campaign_monitor_suppressed: boolean;
    public campaign_monitor_lists: string;
    public email: string;
    public email_secondary: string;
    public phone_home: string;
    public phone_bus: string;
    public phone_cell: string;
    public no_mail: boolean;
    public no_email: boolean;
    public no_bulk_email: boolean;
    public no_phone: boolean;
    public no_marketing_materials: boolean;
    public prefers_email: boolean;
    public prefers_phone: boolean;
    public last_credit_class?: string;
    public last_audit_class?: string;
    public last_oncampus_class?: string;
    public last_distance_education_class?: string;
    public last_evening_weekend_class?: string;
    public last_summer_class?: string;
    public last_marketplace_class?: string;
    public last_anglican_studies_class?: string;
    public new_has_regent_degree: boolean;
    public image_base64: string;
    public owning_username: string;

    public constructor(init?: Partial<CRMContactUpdateRequest>) { (Object as any).assign(this, init); }
}

TypeScript CRMContactUpdateRequest 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/Contact/{guid}/Update HTTP/1.1 
Host: data.regent-college.edu 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	guid: String,
	regent_id: 0,
	first_name: String,
	last_name: String,
	middle_name: String,
	preferred_name: String,
	prefix: String,
	addressee: String,
	primary_salutation: String,
	former_name: String,
	spouse_name: String,
	spouse_is_main_contact: False,
	addr1: String,
	addr2: String,
	city: String,
	state: String,
	country: String,
	code: String,
	dob: 0001-01-01,
	deceased_date: 0001-01-01,
	citizenship: String,
	citizenship_other: String,
	permanent_resident: String,
	denomination: String,
	connection_to_regent: String,
	student_segment: String,
	reason_added: String,
	gender: String,
	marital_status: String,
	financial_aid_received: False,
	is_applicant: False,
	solicitation_method: String,
	solicitation_exceptions: String,
	campaign_monitor_optin: False,
	campaign_monitor_suppressed: False,
	campaign_monitor_lists: String,
	email: String,
	email_secondary: String,
	phone_home: String,
	phone_bus: String,
	phone_cell: String,
	no_mail: False,
	no_email: False,
	no_bulk_email: False,
	no_phone: False,
	no_marketing_materials: False,
	prefers_email: False,
	prefers_phone: False,
	last_credit_class: 0001-01-01,
	last_audit_class: 0001-01-01,
	last_oncampus_class: 0001-01-01,
	last_distance_education_class: 0001-01-01,
	last_evening_weekend_class: 0001-01-01,
	last_summer_class: 0001-01-01,
	last_marketplace_class: 0001-01-01,
	last_anglican_studies_class: 0001-01-01,
	new_has_regent_degree: False,
	image_base64: String,
	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
	}
}