Evo Voice

<back to all web services

DeleteAISession

Delete the specified session

Requires Authentication
Requires the role:SystemAdministrator
The following routes are available for this service:
DELETE/ai/sessions/{sessionId}
import 'package:servicestack/servicestack.dart';

/**
* Delete the specified session
*/
// @Api(Description="Delete the specified session")
class DeleteAISession implements IDelete, IConvertible
{
    /**
    * The ID of the session to delete
    */
    // @ApiMember(Description="The ID of the session to delete")
    String? sessionId;

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

    fromMap(Map<String, dynamic> json) {
        sessionId = json['sessionId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'sessionId': sessionId
    };

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

TypeContext _ctx = TypeContext(library: 'evovoice.io', types: <String, TypeInfo> {
    'DeleteAISession': TypeInfo(TypeOf.Class, create:() => DeleteAISession()),
});

Dart DeleteAISession DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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

DELETE /ai/sessions/{sessionId} HTTP/1.1 
Host: evovoice.io 
Accept: text/jsv