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 .xml suffix or ?format=xml

HTTP + XML

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

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

<UpdateStorageSystem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDB.API.DTO.Document.Operations">
  <DocumentID>00000000-0000-0000-0000-000000000000</DocumentID>
  <OptimizeForNewCreatedFiles>false</OptimizeForNewCreatedFiles>
</UpdateStorageSystem>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<UpdateStorageSystemResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDB.API.DTO.Document.Operations">
  <DocumentID>00000000-0000-0000-0000-000000000000</DocumentID>
  <ErrorMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </ErrorMessages>
  <IsSucces>false</IsSucces>
</UpdateStorageSystemResponse>