<back to all web services

GetScheduledTasks

The following routes are available for this service:
GET/RestApi/sitefinity/scheduling/scheduled-tasks
import java.math.*
import java.util.*
import net.servicestack.client.*


open class GetScheduledTasks
{
    var Skip:Int? = null
    var Take:Int? = null
    var SearchTerm:String? = null
    var OrderBy:OrderByType? = null
    var FilterBy:FilterByType? = null
}

enum class OrderByType
{
    ScheduledFor,
    LastExecutionDate,
    Status,
    NameAsc,
    NameDesc,
}

enum class FilterByType
{
    All,
    Pending,
    Started,
    Stopped,
    Failed,
    Recurring,
}

open class GetScheduledTasksResponse
{
    var Items:ArrayList<ScheduledTaskViewModel> = ArrayList<ScheduledTaskViewModel>()
    var TotalCount:Int? = null
}

open class ScheduledTaskViewModel
{
    var TaskId:UUID? = null
    var Name:String? = null
    var Title:String? = null
    var Status:String? = null
    var ErrorMessage:String? = null
    var RecurringInterval:String? = null
    var ScheduledForDate:Date? = null
    var LastExecutionTime:Date? = null
    var Hash:String? = null
}

Kotlin GetScheduledTasks DTOs

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

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /RestApi/sitefinity/scheduling/scheduled-tasks HTTP/1.1 
Host: www.asg.com.au 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"TotalCount":0}