| Required role: | REGISUserRole |
| POST | /DynamicsCRM/Account/{regent_id} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class CRMAccountRequest
{
public Integer regent_id = null;
public Integer getRegentId() { return regent_id; }
public CRMAccountRequest setRegentId(Integer value) { this.regent_id = value; return this; }
}
public static class CRMAccountResponse
{
public ResponseStatus responseStatus = null;
public String guid = null;
public Integer regent_id = null;
public String name = null;
public String other_name = null;
public String institution_names = null;
public String business_type = null;
public String regent_friendly_church = null;
public String denomination = null;
public String reason_added = null;
public String connection_to_regent = null;
public String educational_affiliation = null;
public String accreditation_status = null;
public String accreditation_status_notes = null;
public String addr1 = null;
public String addr2 = null;
public String city = null;
public String state = null;
public String country = null;
public String code = null;
public String email = null;
public String solicitation_method = null;
public String solicitation_exceptions = null;
public Boolean campaign_monitor_optin = null;
public Boolean campaign_monitor_suppressed = null;
public String consent_to_receive_bulk_email = null;
public String last_consent_source = null;
public Date last_consent_date = null;
public String campaign_monitor_lists = null;
public String phone_home = null;
public String phone_bus = null;
public String phone_cell = null;
public Boolean no_mail = null;
public Boolean no_email = null;
public Boolean no_bulk_email = null;
public Boolean no_phone = null;
public Boolean no_marketing_materials = null;
public Boolean prefers_email = null;
public String added_by = null;
public Date added_date = null;
public String changed_by = null;
public Date changed_date = null;
public String owner_full_name = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public CRMAccountResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public String getGuid() { return guid; }
public CRMAccountResponse setGuid(String value) { this.guid = value; return this; }
public Integer getRegentId() { return regent_id; }
public CRMAccountResponse setRegentId(Integer value) { this.regent_id = value; return this; }
public String getName() { return name; }
public CRMAccountResponse setName(String value) { this.name = value; return this; }
public String getOtherName() { return other_name; }
public CRMAccountResponse setOtherName(String value) { this.other_name = value; return this; }
public String getInstitutionNames() { return institution_names; }
public CRMAccountResponse setInstitutionNames(String value) { this.institution_names = value; return this; }
public String getBusinessType() { return business_type; }
public CRMAccountResponse setBusinessType(String value) { this.business_type = value; return this; }
public String getRegentFriendlyChurch() { return regent_friendly_church; }
public CRMAccountResponse setRegentFriendlyChurch(String value) { this.regent_friendly_church = value; return this; }
public String getDenomination() { return denomination; }
public CRMAccountResponse setDenomination(String value) { this.denomination = value; return this; }
public String getReasonAdded() { return reason_added; }
public CRMAccountResponse setReasonAdded(String value) { this.reason_added = value; return this; }
public String getConnectionToRegent() { return connection_to_regent; }
public CRMAccountResponse setConnectionToRegent(String value) { this.connection_to_regent = value; return this; }
public String getEducationalAffiliation() { return educational_affiliation; }
public CRMAccountResponse setEducationalAffiliation(String value) { this.educational_affiliation = value; return this; }
public String getAccreditationStatus() { return accreditation_status; }
public CRMAccountResponse setAccreditationStatus(String value) { this.accreditation_status = value; return this; }
public String getAccreditationStatusNotes() { return accreditation_status_notes; }
public CRMAccountResponse setAccreditationStatusNotes(String value) { this.accreditation_status_notes = value; return this; }
public String getAddr1() { return addr1; }
public CRMAccountResponse setAddr1(String value) { this.addr1 = value; return this; }
public String getAddr2() { return addr2; }
public CRMAccountResponse setAddr2(String value) { this.addr2 = value; return this; }
public String getCity() { return city; }
public CRMAccountResponse setCity(String value) { this.city = value; return this; }
public String getState() { return state; }
public CRMAccountResponse setState(String value) { this.state = value; return this; }
public String getCountry() { return country; }
public CRMAccountResponse setCountry(String value) { this.country = value; return this; }
public String getCode() { return code; }
public CRMAccountResponse setCode(String value) { this.code = value; return this; }
public String getEmail() { return email; }
public CRMAccountResponse setEmail(String value) { this.email = value; return this; }
public String getSolicitationMethod() { return solicitation_method; }
public CRMAccountResponse setSolicitationMethod(String value) { this.solicitation_method = value; return this; }
public String getSolicitationExceptions() { return solicitation_exceptions; }
public CRMAccountResponse setSolicitationExceptions(String value) { this.solicitation_exceptions = value; return this; }
public Boolean isCampaignMonitorOptin() { return campaign_monitor_optin; }
public CRMAccountResponse setCampaignMonitorOptin(Boolean value) { this.campaign_monitor_optin = value; return this; }
public Boolean isCampaignMonitorSuppressed() { return campaign_monitor_suppressed; }
public CRMAccountResponse setCampaignMonitorSuppressed(Boolean value) { this.campaign_monitor_suppressed = value; return this; }
public String getConsentToReceiveBulkEmail() { return consent_to_receive_bulk_email; }
public CRMAccountResponse setConsentToReceiveBulkEmail(String value) { this.consent_to_receive_bulk_email = value; return this; }
public String getLastConsentSource() { return last_consent_source; }
public CRMAccountResponse setLastConsentSource(String value) { this.last_consent_source = value; return this; }
public Date getLastConsentDate() { return last_consent_date; }
public CRMAccountResponse setLastConsentDate(Date value) { this.last_consent_date = value; return this; }
public String getCampaignMonitorLists() { return campaign_monitor_lists; }
public CRMAccountResponse setCampaignMonitorLists(String value) { this.campaign_monitor_lists = value; return this; }
public String getPhoneHome() { return phone_home; }
public CRMAccountResponse setPhoneHome(String value) { this.phone_home = value; return this; }
public String getPhoneBus() { return phone_bus; }
public CRMAccountResponse setPhoneBus(String value) { this.phone_bus = value; return this; }
public String getPhoneCell() { return phone_cell; }
public CRMAccountResponse setPhoneCell(String value) { this.phone_cell = value; return this; }
public Boolean isNoMail() { return no_mail; }
public CRMAccountResponse setNoMail(Boolean value) { this.no_mail = value; return this; }
public Boolean isNoEmail() { return no_email; }
public CRMAccountResponse setNoEmail(Boolean value) { this.no_email = value; return this; }
public Boolean isNoBulkEmail() { return no_bulk_email; }
public CRMAccountResponse setNoBulkEmail(Boolean value) { this.no_bulk_email = value; return this; }
public Boolean isNoPhone() { return no_phone; }
public CRMAccountResponse setNoPhone(Boolean value) { this.no_phone = value; return this; }
public Boolean isNoMarketingMaterials() { return no_marketing_materials; }
public CRMAccountResponse setNoMarketingMaterials(Boolean value) { this.no_marketing_materials = value; return this; }
public Boolean isPrefersEmail() { return prefers_email; }
public CRMAccountResponse setPrefersEmail(Boolean value) { this.prefers_email = value; return this; }
public String getAddedBy() { return added_by; }
public CRMAccountResponse setAddedBy(String value) { this.added_by = value; return this; }
public Date getAddedDate() { return added_date; }
public CRMAccountResponse setAddedDate(Date value) { this.added_date = value; return this; }
public String getChangedBy() { return changed_by; }
public CRMAccountResponse setChangedBy(String value) { this.changed_by = value; return this; }
public Date getChangedDate() { return changed_date; }
public CRMAccountResponse setChangedDate(Date value) { this.changed_date = value; return this; }
public String getOwnerFullName() { return owner_full_name; }
public CRMAccountResponse setOwnerFullName(String value) { this.owner_full_name = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /DynamicsCRM/Account/{regent_id} HTTP/1.1
Host: data.regent-college.edu
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CRMAccountRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.DynamicsCRM.Requests">
<regent_id>0</regent_id>
</CRMAccountRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CRMAccountResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.DynamicsCRM.Responses">
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<accreditation_status>String</accreditation_status>
<accreditation_status_notes>String</accreditation_status_notes>
<added_by>String</added_by>
<added_date>0001-01-01T00:00:00</added_date>
<addr1>String</addr1>
<addr2>String</addr2>
<business_type>String</business_type>
<campaign_monitor_lists>String</campaign_monitor_lists>
<campaign_monitor_optin>false</campaign_monitor_optin>
<campaign_monitor_suppressed>false</campaign_monitor_suppressed>
<changed_by>String</changed_by>
<changed_date>0001-01-01T00:00:00</changed_date>
<city>String</city>
<code>String</code>
<connection_to_regent>String</connection_to_regent>
<consent_to_receive_bulk_email>String</consent_to_receive_bulk_email>
<country>String</country>
<denomination>String</denomination>
<educational_affiliation>String</educational_affiliation>
<email>String</email>
<guid>String</guid>
<institution_names>String</institution_names>
<last_consent_date>0001-01-01T00:00:00</last_consent_date>
<last_consent_source>String</last_consent_source>
<name>String</name>
<no_bulk_email>false</no_bulk_email>
<no_email>false</no_email>
<no_mail>false</no_mail>
<no_marketing_materials>false</no_marketing_materials>
<no_phone>false</no_phone>
<other_name>String</other_name>
<owner_full_name>String</owner_full_name>
<phone_bus>String</phone_bus>
<phone_cell>String</phone_cell>
<phone_home>String</phone_home>
<prefers_email>false</prefers_email>
<reason_added>String</reason_added>
<regent_friendly_church>String</regent_friendly_church>
<regent_id>0</regent_id>
<solicitation_exceptions>String</solicitation_exceptions>
<solicitation_method>String</solicitation_method>
<state>String</state>
</CRMAccountResponse>