DELETE | /sessions |
---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Voice.Api.Sessions;
namespace Voice.Api.Sessions
{
///<summary>
///Clears out sessions.
///</summary>
[Api(Description="Clears out sessions.")]
public partial class DeleteSessions
: IDelete
{
///<summary>
///The account ID you are clearing out
///</summary>
[ApiMember(Description="The account ID you are clearing out")]
public virtual string AccountId { get; set; }
///<summary>
///The start date to delete from in ISO8601
///</summary>
[ApiMember(Description="The start date to delete from in ISO8601")]
public virtual string StartDateTime { get; set; }
///<summary>
///The end date to delete from in ISO8601
///</summary>
[ApiMember(Description="The end date to delete from in ISO8601")]
public virtual string EndDateTime { get; set; }
}
}
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