PUT | /RestApi/sitefinity/scheduling/scheduled-tasks |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Telerik.Sitefinity.Scheduling.Web.Services.ServiceStack.Dto
Imports Telerik.Sitefinity.Scheduling
Namespace Global
Namespace Telerik.Sitefinity.Scheduling
Public Enum SchedulingTaskCommand
Restart
Stop
Resume
Delete
Start
End Enum
End Namespace
Namespace Telerik.Sitefinity.Scheduling.Web.Services.ServiceStack.Dto
Public Partial Class ManageScheduleTask
Public Overridable Property TaskId As String
Public Overridable Property Operation As SchedulingTaskCommand
Public Overridable Property Hash As String
End Class
End Namespace
End Namespace
VB.NET ManageScheduleTask DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /RestApi/sitefinity/scheduling/scheduled-tasks HTTP/1.1
Host: www.asg.com.au
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
TaskId: String,
Operation: Restart,
Hash: String
}