| GET,PUT | /v1/forms/submissions/{SubmissionUID}/update |
|---|
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 FormFillFieldError
Public Overridable Property K As String
Public Overridable Property Msg As String
End Class
Public Partial Class FormRecordUpdateDraftResponse
Public Overridable Property SubmissionUID As String
Public Overridable Property Number As String
Public Overridable Property ForName As String
Public Overridable Property BranchName As String
Public Overridable Property AppJson As String
Public Overridable Property AnswersJson As String
Public Overridable Property Rev As Integer
Public Overridable Property TenantName As String
Public Overridable Property Today As String
Public Overridable Property Outcome As String
Public Overridable Property SignedInName As String
Public Overridable Property CanReveal As Boolean
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class FormRecordUpdateRequest
Public Overridable Property SubmissionUID As Guid
Public Overridable Property AnswersJson As String
Public Overridable Property Rev As Integer?
End Class
Public Partial Class FormRecordUpdateSaveResponse
Public Overridable Property Saved As Boolean
Public Overridable Property Rev As Integer
Public Overridable Property Lines As List(Of String) = New List(Of String)
Public Overridable Property Errors As List(Of FormFillFieldError) = New List(Of FormFillFieldError)
Public Overridable Property Draft As FormRecordUpdateDraftResponse
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
End Namespace
VB.NET FormRecordUpdateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /v1/forms/submissions/{SubmissionUID}/update HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"SubmissionUID":"00000000000000000000000000000000","AnswersJson":"String","Rev":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Saved":false,"Rev":0,"Lines":["String"],"Errors":[{"K":"String","Msg":"String"}],"Draft":{"SubmissionUID":"String","Number":"String","ForName":"String","BranchName":"String","AppJson":"String","AnswersJson":"String","Rev":0,"TenantName":"String","Today":"String","Outcome":"String","SignedInName":"String","CanReveal":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}