Evo Voice

<back to all web services

DeleteSessions

Clears out sessions.

The following routes are available for this service:
DELETE/sessions
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    /**
    * Clears out sessions.
    */
    @Api(Description="Clears out sessions.")
    public static class DeleteSessions implements IDelete
    {
        /**
        * The account ID you are clearing out
        */
        @ApiMember(Description="The account ID you are clearing out")
        public String accountId = null;

        /**
        * The start date to delete from in ISO8601
        */
        @ApiMember(Description="The start date to delete from in ISO8601")
        public String startDateTime = null;

        /**
        * The end date to delete from in ISO8601
        */
        @ApiMember(Description="The end date to delete from in ISO8601")
        public String endDateTime = null;
        
        public String getAccountId() { return accountId; }
        public DeleteSessions setAccountId(String value) { this.accountId = value; return this; }
        public String getStartDateTime() { return startDateTime; }
        public DeleteSessions setStartDateTime(String value) { this.startDateTime = value; return this; }
        public String getEndDateTime() { return endDateTime; }
        public DeleteSessions setEndDateTime(String value) { this.endDateTime = value; return this; }
    }

}

Java DeleteSessions DTOs

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

HTTP + 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: evovoice.io 
Accept: text/csv