digitaluapi

<back to all web services

ActionDocumentsEdit

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

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

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

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

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

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

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

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

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

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

// @DataContract
class ActionDocumentsEdit 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? DocumentUrl;

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

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

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

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

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

Dart ActionDocumentsEdit DTOs

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

HTTP + CSV

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

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

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

{"Id":0,"TenantsId":0,"ActionsId":0,"DocumentUrl":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}