| Requires any of the roles: | Client, Admin, Partner |
| POST | /action_inboxes |
|---|
import 'package:servicestack/servicestack.dart';
class ActionInboxesAddResponse implements IConvertible
{
// @DataMember(Order=2)
int? TenantsId;
// @DataMember(Order=3)
int? ActionsId;
// @DataMember(Order=4)
String? Name;
// @DataMember(Order=6)
ResponseStatus? ResponseStatus;
ActionInboxesAddResponse({this.TenantsId,this.ActionsId,this.Name,this.ResponseStatus});
ActionInboxesAddResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
TenantsId = json['TenantsId'];
ActionsId = json['ActionsId'];
Name = json['Name'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'TenantsId': TenantsId,
'ActionsId': ActionsId,
'Name': Name,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "ActionInboxesAddResponse";
TypeContext? context = _ctx;
}
// @DataContract
class ActionInboxesAdd implements IConvertible
{
// @DataMember(Order=2)
// @Validate(Validator="NotNull")
int? TenantsId;
// @DataMember(Order=3)
// @Validate(Validator="NotNull")
int? ActionsId;
// @DataMember(Order=4)
// @Validate(Validator="NotNull")
String? Name;
ActionInboxesAdd({this.TenantsId,this.ActionsId,this.Name});
ActionInboxesAdd.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
TenantsId = json['TenantsId'];
ActionsId = json['ActionsId'];
Name = json['Name'];
return this;
}
Map<String, dynamic> toJson() => {
'TenantsId': TenantsId,
'ActionsId': ActionsId,
'Name': Name
};
getTypeName() => "ActionInboxesAdd";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
'ActionInboxesAddResponse': TypeInfo(TypeOf.Class, create:() => ActionInboxesAddResponse()),
'ActionInboxesAdd': TypeInfo(TypeOf.Class, create:() => ActionInboxesAdd()),
});
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 /action_inboxes HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"TenantsId":0,"ActionsId":0,"Name":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"TenantsId":0,"ActionsId":0,"Name":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}