regis

<back to all web services

CRMAccountCreateRequest

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

Namespace Global

    Namespace regis.DynamicsCRM.Requests

        Public Partial Class CRMAccountCreateRequest
            Public Overridable Property regent_id As Nullable(Of Integer)
            Public Overridable Property name As String
            Public Overridable Property other_name As String
            Public Overridable Property business_type As String
            Public Overridable Property regent_friendly_church As String
            Public Overridable Property educational_affiliation As String
            Public Overridable Property reason_added As String
            Public Overridable Property connection_to_regent As String
            Public Overridable Property denomination As String
            Public Overridable Property addr1 As String
            Public Overridable Property addr2 As String
            Public Overridable Property city As String
            Public Overridable Property state As String
            Public Overridable Property country As String
            Public Overridable Property code As String
            Public Overridable Property email As String
            Public Overridable Property solicitation_method As String
            Public Overridable Property solicitation_exceptions As String
            Public Overridable Property campaign_monitor_optin As Boolean
            Public Overridable Property campaign_monitor_suppressed As Boolean
            Public Overridable Property campaign_monitor_lists As String
            Public Overridable Property phone_home As String
            Public Overridable Property phone_bus As String
            Public Overridable Property phone_cell As String
            Public Overridable Property no_mail As Boolean
            Public Overridable Property no_email As Boolean
            Public Overridable Property no_bulk_email As Boolean
            Public Overridable Property no_phone As Boolean
            Public Overridable Property no_marketing_materials As Boolean
            Public Overridable Property prefers_email As Boolean
            Public Overridable Property prefers_phone As Boolean
            Public Overridable Property image_base64 As String
            Public Overridable Property owning_username As String
        End Class
    End Namespace
End Namespace

VB.NET CRMAccountCreateRequest DTOs

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

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /DynamicsCRM/Account/Create HTTP/1.1 
Host: data.regent-college.edu 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"regent_id":0,"name":"String","other_name":"String","business_type":"String","regent_friendly_church":"String","educational_affiliation":"String","reason_added":"String","connection_to_regent":"String","denomination":"String","addr1":"String","addr2":"String","city":"String","state":"String","country":"String","code":"String","email":"String","solicitation_method":"String","solicitation_exceptions":"String","campaign_monitor_optin":false,"campaign_monitor_suppressed":false,"campaign_monitor_lists":"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,"image_base64":"String","owning_username":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}