regis

<back to all web services

CRMContactCreateRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
POST/DynamicsCRM/Contact/Create
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using regis.DynamicsCRM.Requests;

namespace regis.DynamicsCRM.Requests
{
    public partial class CRMContactCreateRequest
    {
        public virtual int? regent_id { get; set; }
        public virtual string first_name { get; set; }
        public virtual string last_name { get; set; }
        public virtual string middle_name { get; set; }
        public virtual string preferred_name { get; set; }
        public virtual string prefix { get; set; }
        public virtual string addressee { get; set; }
        public virtual string primary_salutation { get; set; }
        public virtual string former_name { get; set; }
        public virtual string spouse_name { get; set; }
        public virtual bool spouse_is_main_contact { get; set; }
        public virtual string addr1 { get; set; }
        public virtual string addr2 { get; set; }
        public virtual string city { get; set; }
        public virtual string state { get; set; }
        public virtual string country { get; set; }
        public virtual string code { get; set; }
        public virtual DateTime? dob { get; set; }
        public virtual DateTime? deceased_date { get; set; }
        public virtual string citizenship { get; set; }
        public virtual string citizenship_other { get; set; }
        public virtual string permanent_resident { get; set; }
        public virtual string denomination { get; set; }
        public virtual string connection_to_regent { get; set; }
        public virtual string student_segment { get; set; }
        public virtual string reason_added { get; set; }
        public virtual string gender { get; set; }
        public virtual string marital_status { get; set; }
        public virtual bool financial_aid_received { get; set; }
        public virtual bool is_applicant { get; set; }
        public virtual string solicitation_method { get; set; }
        public virtual string solicitation_exceptions { get; set; }
        public virtual bool campaign_monitor_optin { get; set; }
        public virtual bool campaign_monitor_suppressed { get; set; }
        public virtual string campaign_monitor_lists { get; set; }
        public virtual string email { get; set; }
        public virtual string email_secondary { get; set; }
        public virtual string phone_home { get; set; }
        public virtual string phone_bus { get; set; }
        public virtual string phone_cell { get; set; }
        public virtual bool no_mail { get; set; }
        public virtual bool no_email { get; set; }
        public virtual bool no_bulk_email { get; set; }
        public virtual bool no_phone { get; set; }
        public virtual bool no_marketing_materials { get; set; }
        public virtual bool prefers_email { get; set; }
        public virtual bool prefers_phone { get; set; }
        public virtual DateTime? last_credit_class { get; set; }
        public virtual DateTime? last_audit_class { get; set; }
        public virtual DateTime? last_oncampus_class { get; set; }
        public virtual DateTime? last_distance_education_class { get; set; }
        public virtual DateTime? last_evening_weekend_class { get; set; }
        public virtual DateTime? last_summer_class { get; set; }
        public virtual DateTime? last_marketplace_class { get; set; }
        public virtual DateTime? last_anglican_studies_class { get; set; }
        public virtual string image_base64 { get; set; }
        public virtual string owning_username { get; set; }
    }

}

C# CRMContactCreateRequest 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/Create HTTP/1.1 
Host: data.regent-college.edu 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	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,
	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
	}
}