DigiOffice Gateway Web Services

<back to all web services

UpdateStorageSystem

Requires Authentication
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class UpdateStorageSystemResponse implements IConvertible
{
    bool? IsSucces;
    String? DocumentID;
    List<String>? ErrorMessages;

    UpdateStorageSystemResponse({this.IsSucces,this.DocumentID,this.ErrorMessages});
    UpdateStorageSystemResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        IsSucces = json['IsSucces'];
        DocumentID = json['DocumentID'];
        ErrorMessages = JsonConverters.fromJson(json['ErrorMessages'],'List<String>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'IsSucces': IsSucces,
        'DocumentID': DocumentID,
        'ErrorMessages': JsonConverters.toJson(ErrorMessages,'List<String>',context!)
    };

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

class UpdateStorageSystem implements IConvertible
{
    String? DocumentID;
    bool? OptimizeForNewCreatedFiles;

    UpdateStorageSystem({this.DocumentID,this.OptimizeForNewCreatedFiles});
    UpdateStorageSystem.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        DocumentID = json['DocumentID'];
        OptimizeForNewCreatedFiles = json['OptimizeForNewCreatedFiles'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'DocumentID': DocumentID,
        'OptimizeForNewCreatedFiles': OptimizeForNewCreatedFiles
    };

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

TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: <String, TypeInfo> {
    'UpdateStorageSystemResponse': TypeInfo(TypeOf.Class, create:() => UpdateStorageSystemResponse()),
    'UpdateStorageSystem': TypeInfo(TypeOf.Class, create:() => UpdateStorageSystem()),
});

Dart UpdateStorageSystem DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/UpdateStorageSystem HTTP/1.1 
Host: digiofficeapigateway.deltares.nl 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"DocumentID":"00000000-0000-0000-0000-000000000000","OptimizeForNewCreatedFiles":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"IsSucces":false,"DocumentID":"00000000-0000-0000-0000-000000000000","ErrorMessages":["String"]}