| Requires any of the roles: | Agent, Administrator |
| PUT,OPTIONS | /v1/project/job/{JobID}/schedule |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class JobScheduleUpdateRequest
Public Overridable Property JobID As Integer
Public Overridable Property ExpectedStartDate As Date?
Public Overridable Property ExpectedCompletionDate As Date?
Public Overridable Property PercentComplete As Decimal?
End Class
Public Partial Class JobScheduleUpdateResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property Job As TimelineJob
End Class
Public Partial Class TimelineCrew
Public Overridable Property ProjectJobCrewMemberID As Integer
Public Overridable Property ContactID As Integer
Public Overridable Property ContactName As String
Public Overridable Property BudgetedHours As Decimal?
End Class
Public Partial Class TimelineEquipment
Public Overridable Property ProjectJobEquipmentID As Integer
Public Overridable Property EquipmentID As Integer
Public Overridable Property EquipmentName As String
End Class
Public Partial Class TimelineJob
Public Overridable Property JobID As Integer
Public Overridable Property JobName As String
Public Overridable Property ExpectedStartDate As Date?
Public Overridable Property ExpectedCompletionDate As Date?
Public Overridable Property ActualStartDate As Date?
Public Overridable Property ActualEndDate As Date?
Public Overridable Property PercentComplete As Decimal
Public Overridable Property StatusID As Integer?
Public Overridable Property JobCategory As String
Public Overridable Property IsAgreementVisit As Boolean
Public Overridable Property OccurrenceDate As Date?
Public Overridable Property Crew As List(Of TimelineCrew) = New List(Of TimelineCrew)
Public Overridable Property Equipment As List(Of TimelineEquipment) = New List(Of TimelineEquipment)
End Class
End Namespace
End Namespace
VB.NET JobScheduleUpdateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /v1/project/job/{JobID}/schedule HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"JobID":0,"ExpectedStartDate":"0001-01-01T00:00:00.0000000","ExpectedCompletionDate":"0001-01-01T00:00:00.0000000","PercentComplete":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Job":{"JobID":0,"JobName":"String","ExpectedStartDate":"0001-01-01T00:00:00.0000000","ExpectedCompletionDate":"0001-01-01T00:00:00.0000000","ActualStartDate":"0001-01-01T00:00:00.0000000","ActualEndDate":"0001-01-01T00:00:00.0000000","PercentComplete":0,"StatusID":0,"JobCategory":"String","IsAgreementVisit":false,"OccurrenceDate":"0001-01-01T00:00:00.0000000","Crew":[{"ProjectJobCrewMemberID":0,"ContactID":0,"ContactName":"String","BudgetedHours":0}],"Equipment":[{"ProjectJobEquipmentID":0,"EquipmentID":0,"EquipmentName":"String"}]}}