digitaluapi

<back to all web services

SchedulesEdit

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
PUT/schedules/{Id}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    @DataContract
    public static class SchedulesEdit
    {
        @DataMember(Order=1)
        @Validate(Validator="NotNull")
        public Long Id = null;

        @DataMember(Order=2)
        @Validate(Validator="NotNull")
        public Integer TenantsId = null;

        @DataMember(Order=3)
        @Validate(Validator="NotNull")
        public Integer IntervalsId = null;

        @DataMember(Order=4)
        public Date RunAt = null;

        @DataMember(Order=5)
        public Boolean Monday = null;

        @DataMember(Order=6)
        public Boolean Tuesday = null;

        @DataMember(Order=7)
        public Boolean Wednesday = null;

        @DataMember(Order=8)
        public Boolean Thursday = null;

        @DataMember(Order=9)
        public Boolean Friday = null;

        @DataMember(Order=10)
        public Boolean Saturday = null;

        @DataMember(Order=11)
        public Boolean Sunday = null;

        @DataMember(Order=12)
        public Integer DayOfMonth = null;

        @DataMember(Order=13)
        public Integer MonthOfYear = null;

        @DataMember(Order=14)
        public Date StartDate = null;

        @DataMember(Order=15)
        public Date EndDate = null;
        
        public Long getId() { return Id; }
        public SchedulesEdit setId(Long value) { this.Id = value; return this; }
        public Integer getTenantsId() { return TenantsId; }
        public SchedulesEdit setTenantsId(Integer value) { this.TenantsId = value; return this; }
        public Integer getIntervalsId() { return IntervalsId; }
        public SchedulesEdit setIntervalsId(Integer value) { this.IntervalsId = value; return this; }
        public Date getRunAt() { return RunAt; }
        public SchedulesEdit setRunAt(Date value) { this.RunAt = value; return this; }
        public Boolean isMonday() { return Monday; }
        public SchedulesEdit setMonday(Boolean value) { this.Monday = value; return this; }
        public Boolean isTuesday() { return Tuesday; }
        public SchedulesEdit setTuesday(Boolean value) { this.Tuesday = value; return this; }
        public Boolean isWednesday() { return Wednesday; }
        public SchedulesEdit setWednesday(Boolean value) { this.Wednesday = value; return this; }
        public Boolean isThursday() { return Thursday; }
        public SchedulesEdit setThursday(Boolean value) { this.Thursday = value; return this; }
        public Boolean isFriday() { return Friday; }
        public SchedulesEdit setFriday(Boolean value) { this.Friday = value; return this; }
        public Boolean isSaturday() { return Saturday; }
        public SchedulesEdit setSaturday(Boolean value) { this.Saturday = value; return this; }
        public Boolean isSunday() { return Sunday; }
        public SchedulesEdit setSunday(Boolean value) { this.Sunday = value; return this; }
        public Integer getDayOfMonth() { return DayOfMonth; }
        public SchedulesEdit setDayOfMonth(Integer value) { this.DayOfMonth = value; return this; }
        public Integer getMonthOfYear() { return MonthOfYear; }
        public SchedulesEdit setMonthOfYear(Integer value) { this.MonthOfYear = value; return this; }
        public Date getStartDate() { return StartDate; }
        public SchedulesEdit setStartDate(Date value) { this.StartDate = value; return this; }
        public Date getEndDate() { return EndDate; }
        public SchedulesEdit setEndDate(Date value) { this.EndDate = value; return this; }
    }

    public static class SchedulesEditResponse
    {
        @DataMember(Order=1)
        public Long Id = null;

        @DataMember(Order=2)
        public Integer TenantsId = null;

        @DataMember(Order=3)
        public Integer IntervalsId = null;

        @DataMember(Order=4)
        public Date RunAt = null;

        @DataMember(Order=5)
        public Boolean Monday = null;

        @DataMember(Order=6)
        public Boolean Tuesday = null;

        @DataMember(Order=7)
        public Boolean Wednesday = null;

        @DataMember(Order=8)
        public Boolean Thursday = null;

        @DataMember(Order=9)
        public Boolean Friday = null;

        @DataMember(Order=10)
        public Boolean Saturday = null;

        @DataMember(Order=11)
        public Boolean Sunday = null;

        @DataMember(Order=12)
        public Integer DayOfMonth = null;

        @DataMember(Order=13)
        public Integer MonthOfYear = null;

        @DataMember(Order=14)
        public Date StartDate = null;

        @DataMember(Order=15)
        public Date EndDate = null;

        @DataMember(Order=16)
        public ResponseStatus ResponseStatus = null;
        
        public Long getId() { return Id; }
        public SchedulesEditResponse setId(Long value) { this.Id = value; return this; }
        public Integer getTenantsId() { return TenantsId; }
        public SchedulesEditResponse setTenantsId(Integer value) { this.TenantsId = value; return this; }
        public Integer getIntervalsId() { return IntervalsId; }
        public SchedulesEditResponse setIntervalsId(Integer value) { this.IntervalsId = value; return this; }
        public Date getRunAt() { return RunAt; }
        public SchedulesEditResponse setRunAt(Date value) { this.RunAt = value; return this; }
        public Boolean isMonday() { return Monday; }
        public SchedulesEditResponse setMonday(Boolean value) { this.Monday = value; return this; }
        public Boolean isTuesday() { return Tuesday; }
        public SchedulesEditResponse setTuesday(Boolean value) { this.Tuesday = value; return this; }
        public Boolean isWednesday() { return Wednesday; }
        public SchedulesEditResponse setWednesday(Boolean value) { this.Wednesday = value; return this; }
        public Boolean isThursday() { return Thursday; }
        public SchedulesEditResponse setThursday(Boolean value) { this.Thursday = value; return this; }
        public Boolean isFriday() { return Friday; }
        public SchedulesEditResponse setFriday(Boolean value) { this.Friday = value; return this; }
        public Boolean isSaturday() { return Saturday; }
        public SchedulesEditResponse setSaturday(Boolean value) { this.Saturday = value; return this; }
        public Boolean isSunday() { return Sunday; }
        public SchedulesEditResponse setSunday(Boolean value) { this.Sunday = value; return this; }
        public Integer getDayOfMonth() { return DayOfMonth; }
        public SchedulesEditResponse setDayOfMonth(Integer value) { this.DayOfMonth = value; return this; }
        public Integer getMonthOfYear() { return MonthOfYear; }
        public SchedulesEditResponse setMonthOfYear(Integer value) { this.MonthOfYear = value; return this; }
        public Date getStartDate() { return StartDate; }
        public SchedulesEditResponse setStartDate(Date value) { this.StartDate = value; return this; }
        public Date getEndDate() { return EndDate; }
        public SchedulesEditResponse setEndDate(Date value) { this.EndDate = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public SchedulesEditResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

}

Java SchedulesEdit DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

PUT /schedules/{Id} HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Id":0,"TenantsId":0,"IntervalsId":0,"RunAt":"0001-01-01T00:00:00.0000000","Monday":false,"Tuesday":false,"Wednesday":false,"Thursday":false,"Friday":false,"Saturday":false,"Sunday":false,"DayOfMonth":0,"MonthOfYear":0,"StartDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Id":0,"TenantsId":0,"IntervalsId":0,"RunAt":"0001-01-01T00:00:00.0000000","Monday":false,"Tuesday":false,"Wednesday":false,"Thursday":false,"Friday":false,"Saturday":false,"Sunday":false,"DayOfMonth":0,"MonthOfYear":0,"StartDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}