| GET | /v1/forms/contacts/{ContactId} |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class FormContactPanelRequest
Public Overridable Property ContactId As Integer
End Class
Public Partial Class FormContactPanelResponse
Public Overridable Property Subs As List(Of FormContactPanelSub) = New List(Of FormContactPanelSub)
Public Overridable Property Drafts As List(Of FormOfficeDraftRow) = New List(Of FormOfficeDraftRow)
Public Overridable Property Forms As List(Of FormOfficeApp) = New List(Of FormOfficeApp)
Public Overridable Property CanStart As Boolean
Public Overridable Property ContactName As String
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class FormContactPanelSub
Public Overridable Property SubmissionUID As String
Public Overridable Property Number As String
Public Overridable Property FormName As String
Public Overridable Property Stage As String
Public Overridable Property Tone As String
Public Overridable Property SubmittedAt As String
Public Overridable Property BranchName As String
End Class
Public Partial Class FormOfficeApp
Public Overridable Property FormUID As String
Public Overridable Property Name As String
Public Overridable Property Noun As String
Public Overridable Property DefaultBranchId As String
Public Overridable Property IsRecord As Boolean
Public Overridable Property RoleName As String
End Class
Public Partial Class FormOfficeDraftRow
Public Overridable Property SubmissionUID As String
Public Overridable Property FormUID As String
Public Overridable Property FormName As String
Public Overridable Property ForName As String
Public Overridable Property BranchName As String
Public Overridable Property ContactId As Integer?
Public Overridable Property Page As Integer
Public Overridable Property Pages As Integer
Public Overridable Property SavedBy As String
Public Overridable Property SavedAt As String
End Class
End Namespace
End Namespace
VB.NET FormContactPanelRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/forms/contacts/{ContactId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Subs:
[
{
SubmissionUID: String,
Number: String,
FormName: String,
Stage: String,
Tone: String,
SubmittedAt: String,
BranchName: String
}
],
Drafts:
[
{
SubmissionUID: String,
FormUID: String,
FormName: String,
ForName: String,
BranchName: String,
ContactId: 0,
Page: 0,
Pages: 0,
SavedBy: String,
SavedAt: String
}
],
Forms:
[
{
FormUID: String,
Name: String,
Noun: String,
DefaultBranchId: String,
IsRecord: False,
RoleName: String
}
],
CanStart: False,
ContactName: String,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}