<back to all web services

GetScheduledTasks

The following routes are available for this service:
GET/RestApi/sitefinity/scheduling/scheduled-tasks
import Foundation
import ServiceStack

public class GetScheduledTasks : Codable
{
    public var skip:Int
    public var take:Int
    public var searchTerm:String
    public var orderBy:OrderByType
    public var filterBy:FilterByType

    required public init(){}
}

public enum OrderByType : String, Codable
{
    case ScheduledFor
    case LastExecutionDate
    case Status
    case NameAsc
    case NameDesc
}

public enum FilterByType : String, Codable
{
    case All
    case Pending
    case Started
    case Stopped
    case Failed
    case Recurring
}

public class GetScheduledTasksResponse : Codable
{
    public var items:[ScheduledTaskViewModel] = []
    public var totalCount:Int

    required public init(){}
}

public class ScheduledTaskViewModel : Codable
{
    public var taskId:String
    public var name:String
    public var title:String
    public var status:String
    public var errorMessage:String
    public var recurringInterval:String
    public var scheduledForDate:Date
    public var lastExecutionTime:Date?
    public var hash:String

    required public init(){}
}


Swift GetScheduledTasks DTOs

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

HTTP + JSV

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/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	TotalCount: 0
}