Trendsic Platform Service

<back to all web services

FormReportRequest

Requires Authentication
The following routes are available for this service:
GET/v1/forms/{FormUID}/reports
FormReportRequest Parameters:
NameParameterData TypeRequiredDescription
FormUIDpathGuidNo
FieldquerystringNo
FormReportResponse Parameters:
NameParameterData TypeRequiredDescription
SubmissionsformintNo
DecidedformintNo
ApprovedformintNo
RateTextformstringNo
DecisionTextformstringNo
DraftsformintNo
SlaformintNo
DraftDaysformintNo
IsRecordformboolNo
WeeksformList<FormReportBar>No
StagesformList<FormReportBar>No
PagesformList<FormReportBar>No
StartedformintNo
SubmittedPctformintNo
DropFromformstringNo
DropNformintNo
DurationsformList<FormReportBar>No
FieldsformList<FormReportBar>No
FieldformstringNo
FieldLabelformstringNo
OptionsformList<FormReportBar>No
ReasonsformList<FormReportBar>No
ResponseStatusformResponseStatusNo
FormReportBar Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
LabelformstringNo
NformintNo
ValueformdoubleNo
TextformstringNo
ToneformstringNo

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.

GET /v1/forms/{FormUID}/reports HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Submissions: 0,
	Decided: 0,
	Approved: 0,
	RateText: String,
	DecisionText: String,
	Drafts: 0,
	Sla: 0,
	DraftDays: 0,
	IsRecord: False,
	Weeks: 
	[
		{
			Id: String,
			Label: String,
			N: 0,
			Value: 0,
			Text: String,
			Tone: String
		}
	],
	Stages: 
	[
		{
			Id: String,
			Label: String,
			N: 0,
			Value: 0,
			Text: String,
			Tone: String
		}
	],
	Pages: 
	[
		{
			Id: String,
			Label: String,
			N: 0,
			Value: 0,
			Text: String,
			Tone: String
		}
	],
	Started: 0,
	SubmittedPct: 0,
	DropFrom: String,
	DropN: 0,
	Durations: 
	[
		{
			Id: String,
			Label: String,
			N: 0,
			Value: 0,
			Text: String,
			Tone: String
		}
	],
	Fields: 
	[
		{
			Id: String,
			Label: String,
			N: 0,
			Value: 0,
			Text: String,
			Tone: String
		}
	],
	Field: String,
	FieldLabel: String,
	Options: 
	[
		{
			Id: String,
			Label: String,
			N: 0,
			Value: 0,
			Text: String,
			Tone: String
		}
	],
	Reasons: 
	[
		{
			Id: String,
			Label: String,
			N: 0,
			Value: 0,
			Text: String,
			Tone: String
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}