Nephila RiskStore

<back to all web services

DeleteUnsavedResultsRequest

Maintenance
Requires Authentication
Requires the role:Riskstore.Admin
The following routes are available for this service:
DELETE/api/riskstore/maintenance/delete-resultsDelete unsaved result on or before the specified UTC date/time
import 'package:servicestack/servicestack.dart';

class DeleteUnsavedResultsRequest implements IDelete, IConvertible
{
    /**
    * The UTC date/time to delete on or before
    */
    // @ApiMember(DataType="string", Description="The UTC date/time to delete on or before", Format="date-time", IsRequired=true)
    DateTime? deleteResultsNotSavedOnOrBeforeDateTimeUtc;

    DeleteUnsavedResultsRequest({this.deleteResultsNotSavedOnOrBeforeDateTimeUtc});
    DeleteUnsavedResultsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'deleteResultsNotSavedOnOrBeforeDateTimeUtc': JsonConverters.toJson(deleteResultsNotSavedOnOrBeforeDateTimeUtc,'DateTime',context!)
    };

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

TypeContext _ctx = TypeContext(library: 'riskstoreng_dev.nephila.com', types: <String, TypeInfo> {
    'DeleteUnsavedResultsRequest': TypeInfo(TypeOf.Class, create:() => DeleteUnsavedResultsRequest()),
});

Dart DeleteUnsavedResultsRequest 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.

DELETE /api/riskstore/maintenance/delete-results HTTP/1.1 
Host: riskstoreng-dev.nephila.com 
Accept: application/json