| POST | /v1/formfill/{TenantSlug}/{FormSlug}/relink |
|---|
import 'package:servicestack/servicestack.dart';
class FormFillRelinkResponse implements IConvertible
{
bool? Accepted;
ResponseStatus? ResponseStatus;
FormFillRelinkResponse({this.Accepted,this.ResponseStatus});
FormFillRelinkResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Accepted = json['Accepted'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Accepted': Accepted,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "FormFillRelinkResponse";
TypeContext? context = _ctx;
}
class FormFillRelinkRequest implements IConvertible
{
String? TenantSlug;
String? FormSlug;
String? To;
String? Lang;
String? TurnstileToken;
FormFillRelinkRequest({this.TenantSlug,this.FormSlug,this.To,this.Lang,this.TurnstileToken});
FormFillRelinkRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
TenantSlug = json['TenantSlug'];
FormSlug = json['FormSlug'];
To = json['To'];
Lang = json['Lang'];
TurnstileToken = json['TurnstileToken'];
return this;
}
Map<String, dynamic> toJson() => {
'TenantSlug': TenantSlug,
'FormSlug': FormSlug,
'To': To,
'Lang': Lang,
'TurnstileToken': TurnstileToken
};
getTypeName() => "FormFillRelinkRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'FormFillRelinkResponse': TypeInfo(TypeOf.Class, create:() => FormFillRelinkResponse()),
'FormFillRelinkRequest': TypeInfo(TypeOf.Class, create:() => FormFillRelinkRequest()),
});
Dart FormFillRelinkRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/formfill/{TenantSlug}/{FormSlug}/relink HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"TenantSlug":"String","FormSlug":"String","To":"String","Lang":"String","TurnstileToken":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Accepted":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}