regis

<back to all web services

CRMConnectionCreateRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
POST/DynamicsCRM/Connection/Create
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class CRMConnectionCreateRequest
    {
        public Integer first_regent_id = null;
        public Integer second_regent_id = null;
        public Boolean is_contact_to_account = null;
        public Boolean is_contact_to_contact = null;
        public Boolean is_account_to_account = null;
        public Boolean is_account_to_contact = null;
        public String first_role = null;
        public String second_role = null;
        public String connection_category = null;
        public String description = null;
        
        public Integer getFirstRegentId() { return first_regent_id; }
        public CRMConnectionCreateRequest setFirstRegentId(Integer value) { this.first_regent_id = value; return this; }
        public Integer getSecondRegentId() { return second_regent_id; }
        public CRMConnectionCreateRequest setSecondRegentId(Integer value) { this.second_regent_id = value; return this; }
        public Boolean getIsContactToAccount() { return is_contact_to_account; }
        public CRMConnectionCreateRequest setIsContactToAccount(Boolean value) { this.is_contact_to_account = value; return this; }
        public Boolean getIsContactToContact() { return is_contact_to_contact; }
        public CRMConnectionCreateRequest setIsContactToContact(Boolean value) { this.is_contact_to_contact = value; return this; }
        public Boolean getIsAccountToAccount() { return is_account_to_account; }
        public CRMConnectionCreateRequest setIsAccountToAccount(Boolean value) { this.is_account_to_account = value; return this; }
        public Boolean getIsAccountToContact() { return is_account_to_contact; }
        public CRMConnectionCreateRequest setIsAccountToContact(Boolean value) { this.is_account_to_contact = value; return this; }
        public String getFirstRole() { return first_role; }
        public CRMConnectionCreateRequest setFirstRole(String value) { this.first_role = value; return this; }
        public String getSecondRole() { return second_role; }
        public CRMConnectionCreateRequest setSecondRole(String value) { this.second_role = value; return this; }
        public String getConnectionCategory() { return connection_category; }
        public CRMConnectionCreateRequest setConnectionCategory(String value) { this.connection_category = value; return this; }
        public String getDescription() { return description; }
        public CRMConnectionCreateRequest setDescription(String value) { this.description = value; return this; }
    }

}

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

{
	first_regent_id: 0,
	second_regent_id: 0,
	is_contact_to_account: False,
	is_contact_to_contact: False,
	is_account_to_account: False,
	is_account_to_contact: False,
	first_role: String,
	second_role: String,
	connection_category: String,
	description: 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
	}
}