| Requires any of the roles: | Client, Admin, Partner |
| PUT | /error_messages/{Id} |
|---|
import 'package:servicestack/servicestack.dart';
class ErrorMessagesEditResponse implements IConvertible
{
// @DataMember(Order=1)
int? Id;
// @DataMember(Order=2)
String? FunctionName;
// @DataMember(Order=3)
String? ErrorMessage;
// @DataMember(Order=4)
DateTime? Date;
// @DataMember(Order=6)
ResponseStatus? ResponseStatus;
ErrorMessagesEditResponse({this.Id,this.FunctionName,this.ErrorMessage,this.Date,this.ResponseStatus});
ErrorMessagesEditResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
FunctionName = json['FunctionName'];
ErrorMessage = json['ErrorMessage'];
Date = JsonConverters.fromJson(json['Date'],'DateTime',context!);
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'FunctionName': FunctionName,
'ErrorMessage': ErrorMessage,
'Date': JsonConverters.toJson(Date,'DateTime',context!),
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "ErrorMessagesEditResponse";
TypeContext? context = _ctx;
}
// @DataContract
class ErrorMessagesEdit implements IConvertible
{
// @DataMember(Order=1)
// @Validate(Validator="NotNull")
int? Id;
// @DataMember(Order=2)
// @Validate(Validator="NotNull")
String? FunctionName;
// @DataMember(Order=3)
// @Validate(Validator="NotNull")
String? ErrorMessage;
// @DataMember(Order=4)
// @Validate(Validator="NotNull")
DateTime? Date;
ErrorMessagesEdit({this.Id,this.FunctionName,this.ErrorMessage,this.Date});
ErrorMessagesEdit.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
FunctionName = json['FunctionName'];
ErrorMessage = json['ErrorMessage'];
Date = JsonConverters.fromJson(json['Date'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'FunctionName': FunctionName,
'ErrorMessage': ErrorMessage,
'Date': JsonConverters.toJson(Date,'DateTime',context!)
};
getTypeName() => "ErrorMessagesEdit";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
'ErrorMessagesEditResponse': TypeInfo(TypeOf.Class, create:() => ErrorMessagesEditResponse()),
'ErrorMessagesEdit': TypeInfo(TypeOf.Class, create:() => ErrorMessagesEdit()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /error_messages/{Id} HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Id":0,"FunctionName":"String","ErrorMessage":"String","Date":"0001-01-01T00:00:00.0000000+00:00"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Id":0,"FunctionName":"String","ErrorMessage":"String","Date":"0001-01-01T00:00:00.0000000+00:00","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}