Trendsic Platform Service

<back to all web services

ProjectJobsListRequest

Requires Authentication
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/Project/Job/{ProjectID}
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class ProjectJobsListRequest
{
    open var ProjectID:Int? = null
    open var ProjectJobs:ArrayList<Job> = ArrayList<Job>()
}

open class Job
{
    open var JobID:Int? = null
    open var JobName:String? = null
    open var JobTypeID:Int? = null
    open var ExpectedStartDate:Date? = null
    open var ActualStartDate:Date? = null
    open var ExpectedCompletionDate:Date? = null
    open var ActualEndDate:Date? = null
    open var Active:Boolean? = null
    open var CreatedByUID:UUID? = null
    open var ProjectID:Int? = null
    open var StatusId:Int? = null
    open var AdvancedScheduling:Boolean? = null
    open var ShowTimes:Boolean? = null
    open var Schedule:ArrayList<CalendarEvent> = ArrayList<CalendarEvent>()
}

open class CalendarEvent
{
    open var CalendarEventId:Int? = null
    open var CalendarId:UUID? = null
    open var EventStart:Date? = null
    open var EventEnd:Date? = null
    open var Location:String? = null
    open var Summary:String? = null
    open var Description:String? = null
    open var EventTypeId:Int? = null
    open var Recurrence:Boolean? = null
    open var RecurrenceFrequency:String? = null
    open var RecurrenceBy:String? = null
    open var RecurrenceByValue:String? = null
    open var RecurrenceUntil:Date? = null
    open var CreatedBy:String? = null
    open var CreatedByName:String? = null
    open var DateCreated:Date? = null
    open var ModifiedBy:String? = null
    open var DateModified:Date? = null
    open var Deleted:Boolean? = null
    open var TimeZone:String? = null
    open var Offset:Int? = null
    open var TextReminderSentDate:Date? = null
    open var Confirmed:Boolean? = null
    open var ConfirmationTextId:String? = null
    open var FirstTextReminderId:String? = null
    open var SecondTextReminderId:String? = null
    open var LocationUID:UUID? = null
    open var AgentReminderSentDate:Date? = null
    open var ContactId:Int? = null
    open var IsPrivate:Boolean? = null
    open var ProjectID:Int? = null
    open var JobID:Int? = null
    open var ProjectStartDate:Date? = null
    open var ProjectEndDate:Date? = null
    open var MaxCrewEndDate:Date? = null
    open var MaxEquipmentEndDate:Date? = null
    open var CheckInId:UUID? = null
    open var AllDay:Boolean? = null
    open var JobName:String? = null
    open var JobStatusName:String? = null
    open var JobStatusId:Int? = null
    open var ProjectName:String? = null
    open var ResourceId:Int? = null
    open var ResourceName:String? = null
    open var Original_EventStart:Date? = null
    open var Original_Recurrence:Boolean? = null
    open var Original_RecurrenceFrequency:String? = null
    open var Original_RecurrenceBy:String? = null
    open var Original_RecurrenceByValue:String? = null
    open var Original_RecurrenceUntil:Date? = null
    open var Checksum:String? = null
}

open class ProjectJobsListResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var ProjectJobs:ArrayList<Job> = ArrayList<Job>()
}

Kotlin ProjectJobsListRequest 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.

POST /v1/Project/Job/{ProjectID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ProjectID":0,"ProjectJobs":[{"JobID":0,"JobName":"String","JobTypeID":0,"ExpectedStartDate":"0001-01-01T00:00:00.0000000","ActualStartDate":"0001-01-01T00:00:00.0000000","ExpectedCompletionDate":"0001-01-01T00:00:00.0000000","ActualEndDate":"0001-01-01T00:00:00.0000000","Active":false,"CreatedByUID":"00000000000000000000000000000000","ProjectID":0,"StatusId":0,"AdvancedScheduling":false,"ShowTimes":false,"Schedule":[{"CalendarEventId":0,"CalendarId":"00000000000000000000000000000000","EventStart":"0001-01-01T00:00:00.0000000","EventEnd":"0001-01-01T00:00:00.0000000","Location":"String","Summary":"String","Description":"String","EventTypeId":0,"Recurrence":false,"RecurrenceFrequency":"String","RecurrenceBy":"String","RecurrenceByValue":"String","RecurrenceUntil":"0001-01-01T00:00:00.0000000","CreatedBy":"String","CreatedByName":"String","DateCreated":"0001-01-01T00:00:00.0000000","ModifiedBy":"String","DateModified":"0001-01-01T00:00:00.0000000","Deleted":false,"TimeZone":"String","Offset":0,"TextReminderSentDate":"0001-01-01T00:00:00.0000000","Confirmed":false,"ConfirmationTextId":"String","FirstTextReminderId":"String","SecondTextReminderId":"String","LocationUID":"00000000000000000000000000000000","AgentReminderSentDate":"0001-01-01T00:00:00.0000000","ContactId":0,"IsPrivate":false,"ProjectID":0,"JobID":0,"ProjectStartDate":"0001-01-01T00:00:00.0000000","ProjectEndDate":"0001-01-01T00:00:00.0000000","MaxCrewEndDate":"0001-01-01T00:00:00.0000000","MaxEquipmentEndDate":"0001-01-01T00:00:00.0000000","CheckInId":"00000000000000000000000000000000","AllDay":false,"JobName":"String","JobStatusName":"String","JobStatusId":0,"ProjectName":"String","ResourceId":0,"ResourceName":"String","Original_EventStart":"0001-01-01T00:00:00.0000000","Original_Recurrence":false,"Original_RecurrenceFrequency":"String","Original_RecurrenceBy":"String","Original_RecurrenceByValue":"String","Original_RecurrenceUntil":"0001-01-01T00:00:00.0000000","Checksum":"String"}]}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ProjectJobs":[{"JobID":0,"JobName":"String","JobTypeID":0,"ExpectedStartDate":"0001-01-01T00:00:00.0000000","ActualStartDate":"0001-01-01T00:00:00.0000000","ExpectedCompletionDate":"0001-01-01T00:00:00.0000000","ActualEndDate":"0001-01-01T00:00:00.0000000","Active":false,"CreatedByUID":"00000000000000000000000000000000","ProjectID":0,"StatusId":0,"AdvancedScheduling":false,"ShowTimes":false,"Schedule":[{"CalendarEventId":0,"CalendarId":"00000000000000000000000000000000","EventStart":"0001-01-01T00:00:00.0000000","EventEnd":"0001-01-01T00:00:00.0000000","Location":"String","Summary":"String","Description":"String","EventTypeId":0,"Recurrence":false,"RecurrenceFrequency":"String","RecurrenceBy":"String","RecurrenceByValue":"String","RecurrenceUntil":"0001-01-01T00:00:00.0000000","CreatedBy":"String","CreatedByName":"String","DateCreated":"0001-01-01T00:00:00.0000000","ModifiedBy":"String","DateModified":"0001-01-01T00:00:00.0000000","Deleted":false,"TimeZone":"String","Offset":0,"TextReminderSentDate":"0001-01-01T00:00:00.0000000","Confirmed":false,"ConfirmationTextId":"String","FirstTextReminderId":"String","SecondTextReminderId":"String","LocationUID":"00000000000000000000000000000000","AgentReminderSentDate":"0001-01-01T00:00:00.0000000","ContactId":0,"IsPrivate":false,"ProjectID":0,"JobID":0,"ProjectStartDate":"0001-01-01T00:00:00.0000000","ProjectEndDate":"0001-01-01T00:00:00.0000000","MaxCrewEndDate":"0001-01-01T00:00:00.0000000","MaxEquipmentEndDate":"0001-01-01T00:00:00.0000000","CheckInId":"00000000000000000000000000000000","AllDay":false,"JobName":"String","JobStatusName":"String","JobStatusId":0,"ProjectName":"String","ResourceId":0,"ResourceName":"String","Original_EventStart":"0001-01-01T00:00:00.0000000","Original_Recurrence":false,"Original_RecurrenceFrequency":"String","Original_RecurrenceBy":"String","Original_RecurrenceByValue":"String","Original_RecurrenceUntil":"0001-01-01T00:00:00.0000000","Checksum":"String"}]}]}