Trendsic Platform Service

<back to all web services

FormRecordUpdateRevealRequest

Requires Authentication
The following routes are available for this service:
POST/v1/forms/submissions/{SubmissionUID}/update/reveal/{FieldKey}
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class FormRowsRevealResponse implements IConvertible
{
    String? RowsJson;
    String? Value;
    ResponseStatus? ResponseStatus;

    FormRowsRevealResponse({this.RowsJson,this.Value,this.ResponseStatus});
    FormRowsRevealResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        RowsJson = json['RowsJson'];
        Value = json['Value'];
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'RowsJson': RowsJson,
        'Value': Value,
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
    };

    getTypeName() => "FormRowsRevealResponse";
    TypeContext? context = _ctx;
}

class FormRecordUpdateRevealRequest implements IConvertible
{
    String? SubmissionUID;
    String? FieldKey;

    FormRecordUpdateRevealRequest({this.SubmissionUID,this.FieldKey});
    FormRecordUpdateRevealRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        SubmissionUID = json['SubmissionUID'];
        FieldKey = json['FieldKey'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'SubmissionUID': SubmissionUID,
        'FieldKey': FieldKey
    };

    getTypeName() => "FormRecordUpdateRevealRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'FormRowsRevealResponse': TypeInfo(TypeOf.Class, create:() => FormRowsRevealResponse()),
    'FormRecordUpdateRevealRequest': TypeInfo(TypeOf.Class, create:() => FormRecordUpdateRevealRequest()),
});

Dart FormRecordUpdateRevealRequest DTOs

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.

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

{
	SubmissionUID: 00000000000000000000000000000000,
	FieldKey: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	RowsJson: String,
	Value: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}