Required role: | User |
POST | /sessions/{sessionId}/log |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
/**
* Adds the specified log entry to the session log.
*/
// @Api(Description="Adds the specified log entry to the session log.")
class AddToSessionLog implements IConvertible
{
/**
* The ID of the active session
*/
// @ApiMember(Description="The ID of the active session")
String? sessionId;
/**
* The log text to add
*/
// @ApiMember(Description="The log text to add")
String? logText;
AddToSessionLog({this.sessionId,this.logText});
AddToSessionLog.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
sessionId = json['sessionId'];
logText = json['logText'];
return this;
}
Map<String, dynamic> toJson() => {
'sessionId': sessionId,
'logText': logText
};
getTypeName() => "AddToSessionLog";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: <String, TypeInfo> {
'AddToSessionLog': TypeInfo(TypeOf.Class, create:() => AddToSessionLog()),
});
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.
POST /sessions/{sessionId}/log HTTP/1.1
Host: team.evovoice.io
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
sessionId: String,
logText: String
}