| Requires the role: | Riskstore.Admin |
| POST | /api/riskstore/maintenance/refresh-il-eventset-riskbucket-lossband-counts | Refresh the ILEventSetRiskBucketLossBandCounts table for specified ILEventSetIds |
|---|
import 'package:servicestack/servicestack.dart';
class RefreshILEventSetRiskBucketLossBandCountsRequest implements IPost, IConvertible
{
/**
* List of ILEventSetIds to refresh (leave empty for all)
*/
// @ApiMember(Description="List of ILEventSetIds to refresh (leave empty for all)")
List<int>? ilEventSetIds;
RefreshILEventSetRiskBucketLossBandCountsRequest({this.ilEventSetIds});
RefreshILEventSetRiskBucketLossBandCountsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ilEventSetIds = JsonConverters.fromJson(json['ilEventSetIds'],'List<int>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ilEventSetIds': JsonConverters.toJson(ilEventSetIds,'List<int>',context!)
};
getTypeName() => "RefreshILEventSetRiskBucketLossBandCountsRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'riskstoreng_dev.nephila.com', types: <String, TypeInfo> {
'RefreshILEventSetRiskBucketLossBandCountsRequest': TypeInfo(TypeOf.Class, create:() => RefreshILEventSetRiskBucketLossBandCountsRequest()),
});
Dart RefreshILEventSetRiskBucketLossBandCountsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/riskstore/maintenance/refresh-il-eventset-riskbucket-lossband-counts HTTP/1.1
Host: riskstoreng-dev.nephila.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"ilEventSetIds":[0]}