| Requires any of the roles: | Agent, Administrator |
| PUT,OPTIONS | /v1/project/job/{JobID}/schedule |
|---|
namespace CRM.AgencyPlatform.API.Internal
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type TimelineCrew() =
member val ProjectJobCrewMemberID:Int32 = new Int32() with get,set
member val ContactID:Int32 = new Int32() with get,set
member val ContactName:String = null with get,set
member val BudgetedHours:Nullable<Decimal> = new Nullable<Decimal>() with get,set
[<AllowNullLiteral>]
type TimelineEquipment() =
member val ProjectJobEquipmentID:Int32 = new Int32() with get,set
member val EquipmentID:Int32 = new Int32() with get,set
member val EquipmentName:String = null with get,set
[<AllowNullLiteral>]
type TimelineJob() =
member val JobID:Int32 = new Int32() with get,set
member val JobName:String = null with get,set
member val ExpectedStartDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val ExpectedCompletionDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val ActualStartDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val ActualEndDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val PercentComplete:Decimal = new Decimal() with get,set
member val StatusID:Nullable<Int32> = new Nullable<Int32>() with get,set
member val JobCategory:String = null with get,set
member val IsAgreementVisit:Boolean = new Boolean() with get,set
member val OccurrenceDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val Crew:ResizeArray<TimelineCrew> = new ResizeArray<TimelineCrew>() with get,set
member val Equipment:ResizeArray<TimelineEquipment> = new ResizeArray<TimelineEquipment>() with get,set
[<AllowNullLiteral>]
type JobScheduleUpdateResponse() =
member val ResponseStatus:ResponseStatus = null with get,set
member val Job:TimelineJob = null with get,set
[<AllowNullLiteral>]
type JobScheduleUpdateRequest() =
member val JobID:Int32 = new Int32() with get,set
member val ExpectedStartDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val ExpectedCompletionDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val PercentComplete:Nullable<Decimal> = new Nullable<Decimal>() with get,set
F# 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"}]}}