digitaluapi

<back to all web services

ActionInboxesEdit

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
PUT/action_inboxes/{Id}
import 'package:servicestack/servicestack.dart';
import 'dart:collection';

class ActionInboxesEditResponse implements IConvertible
{
    // @DataMember(Order=1)
    int? Id;

    // @DataMember(Order=2)
    int? TenantsId;

    // @DataMember(Order=3)
    int? ActionsId;

    // @DataMember(Order=4)
    String? Name;

    // @DataMember(Order=6)
    ResponseStatus? ResponseStatus;

    ActionInboxesEditResponse({this.Id,this.TenantsId,this.ActionsId,this.Name,this.ResponseStatus});
    ActionInboxesEditResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'TenantsId': TenantsId,
        'ActionsId': ActionsId,
        'Name': Name,
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
    };

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

// @DataContract
class ActionInboxesEdit implements IConvertible
{
    // @DataMember(Order=1)
    // @Validate(Validator="NotNull")
    int? Id;

    // @DataMember(Order=2)
    // @Validate(Validator="NotNull")
    int? TenantsId;

    // @DataMember(Order=3)
    // @Validate(Validator="NotNull")
    int? ActionsId;

    // @DataMember(Order=4)
    // @Validate(Validator="NotNull")
    String? Name;

    ActionInboxesEdit({this.Id,this.TenantsId,this.ActionsId,this.Name});
    ActionInboxesEdit.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        TenantsId = json['TenantsId'];
        ActionsId = json['ActionsId'];
        Name = json['Name'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'TenantsId': TenantsId,
        'ActionsId': ActionsId,
        'Name': Name
    };

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

TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
    'ActionInboxesEditResponse': TypeInfo(TypeOf.Class, create:() => ActionInboxesEditResponse()),
    'ActionInboxesEdit': TypeInfo(TypeOf.Class, create:() => ActionInboxesEdit()),
});

Dart ActionInboxesEdit DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /action_inboxes/{Id} HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Id":0,"TenantsId":0,"ActionsId":0,"Name":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Id":0,"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"}}}