Trendsic Platform Service

<back to all web services

FormRecordUpdateRequest

Requires Authentication
The following routes are available for this service:
GET,PUT/v1/forms/submissions/{SubmissionUID}/update
FormRecordUpdateRequest Parameters:
NameParameterData TypeRequiredDescription
SubmissionUIDpathGuidNo
AnswersJsonbodystringNo
Revbodyint?No
FormRecordUpdateSaveResponse Parameters:
NameParameterData TypeRequiredDescription
SavedformboolNo
RevformintNo
LinesformList<string>No
ErrorsformList<FormFillFieldError>No
DraftformFormRecordUpdateDraftResponseNo
ResponseStatusformResponseStatusNo
FormFillFieldError Parameters:
NameParameterData TypeRequiredDescription
KformstringNo
MsgformstringNo
FormRecordUpdateDraftResponse Parameters:
NameParameterData TypeRequiredDescription
SubmissionUIDformstringNo
NumberformstringNo
ForNameformstringNo
BranchNameformstringNo
AppJsonformstringNo
AnswersJsonformstringNo
RevformintNo
TenantNameformstringNo
TodayformstringNo
OutcomeformstringNo
SignedInNameformstringNo
CanRevealformboolNo
ResponseStatusformResponseStatusNo

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.

PUT /v1/forms/submissions/{SubmissionUID}/update HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	SubmissionUID: 00000000000000000000000000000000,
	AnswersJson: String,
	Rev: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
		}
	}
}