DELETE | /sessions |
---|
namespace Voice.Api.Sessions
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
///<summary>
///Clears out sessions.
///</summary>
[<Api(Description="Clears out sessions.")>]
[<AllowNullLiteral>]
type DeleteSessions() =
interface IDelete
///<summary>
///The account ID you are clearing out
///</summary>
[<ApiMember(Description="The account ID you are clearing out")>]
member val AccountId:String = null with get,set
///<summary>
///The start date to delete from in ISO8601
///</summary>
[<ApiMember(Description="The start date to delete from in ISO8601")>]
member val StartDateTime:String = null with get,set
///<summary>
///The end date to delete from in ISO8601
///</summary>
[<ApiMember(Description="The end date to delete from in ISO8601")>]
member val EndDateTime:String = null with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv