DELETE | /sessions |
---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
# @Api(Description="Clears out sessions.")
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class DeleteSessions(IDelete):
"""
Clears out sessions.
"""
# @ApiMember(Description="The account ID you are clearing out")
account_id: Optional[str] = None
"""
The account ID you are clearing out
"""
# @ApiMember(Description="The start date to delete from in ISO8601")
start_date_time: Optional[str] = None
"""
The start date to delete from in ISO8601
"""
# @ApiMember(Description="The end date to delete from in ISO8601")
end_date_time: Optional[str] = None
"""
The end date to delete from in ISO8601
"""
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.
DELETE /sessions HTTP/1.1 Host: team.evovoice.io Accept: text/jsonl