DELETE | /sessions |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
/**
* Clears out sessions.
*/
// @Api(Description="Clears out sessions.")
class DeleteSessions implements IDelete, IConvertible
{
/**
* The account ID you are clearing out
*/
// @ApiMember(Description="The account ID you are clearing out")
String? accountId;
/**
* The start date to delete from in ISO8601
*/
// @ApiMember(Description="The start date to delete from in ISO8601")
String? startDateTime;
/**
* The end date to delete from in ISO8601
*/
// @ApiMember(Description="The end date to delete from in ISO8601")
String? endDateTime;
DeleteSessions({this.accountId,this.startDateTime,this.endDateTime});
DeleteSessions.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
accountId = json['accountId'];
startDateTime = json['startDateTime'];
endDateTime = json['endDateTime'];
return this;
}
Map<String, dynamic> toJson() => {
'accountId': accountId,
'startDateTime': startDateTime,
'endDateTime': endDateTime
};
getTypeName() => "DeleteSessions";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: <String, TypeInfo> {
'DeleteSessions': TypeInfo(TypeOf.Class, create:() => DeleteSessions()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
DELETE /sessions HTTP/1.1 Host: team.evovoice.io Accept: text/jsv