| Requires the role: | Riskstore.Admin |
| DELETE | /api/riskstore/maintenance/delete-results | Delete unsaved result on or before the specified UTC date/time |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Nephila.RiskStore.ServiceModel.Requests;
namespace Nephila.RiskStore.ServiceModel.Requests
{
public partial class DeleteUnsavedResultsRequest
: IDelete
{
///<summary>
///The UTC date/time to delete on or before
///</summary>
[ApiMember(DataType="string", Description="The UTC date/time to delete on or before", Format="date-time", IsRequired=true)]
public virtual DateTime DeleteResultsNotSavedOnOrBeforeDateTimeUtc { get; set; }
}
}
C# DeleteUnsavedResultsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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/xml