Trendsic Platform Service

<back to all web services

PmJobRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/pm/job/{JobID}

export class PmJobCrew
{
    public ContactID: number;
    public Name: string;
    public Rate: number;
    public BudgetedHours: number;
    public IsOpen: boolean;

    public constructor(init?: Partial<PmJobCrew>) { (Object as any).assign(this, init); }
}

export class PmJobResource
{
    public Id: number;
    public Name: string;
    public Amount: number;
    public Qty: number;
    public Unit: string;

    public constructor(init?: Partial<PmJobResource>) { (Object as any).assign(this, init); }
}

export class PmJob
{
    public JobID: number;
    public Name: string;
    public Description: string;
    public Status: string;
    public StartDate: string;
    public EndDate: string;
    public CrewCount: number;
    public BudgetedHours: number;
    public EquipmentCount: number;
    public MaterialCount: number;
    public CrewCost: number;
    public EquipCost: number;
    public MatCost: number;
    public Cost: number;
    public NoCrew: boolean;
    public EquipConflict: boolean;
    public MaterialGap: boolean;
    public ReadyPct: number;
    public Priority: string;
    public Tags: string[] = [];
    public Crew: PmJobCrew[] = [];
    public Equipment: PmJobResource[] = [];
    public Materials: PmJobResource[] = [];

    public constructor(init?: Partial<PmJob>) { (Object as any).assign(this, init); }
}

export class PmJobResponse
{
    public Job: PmJob;
    public ResponseStatus: ResponseStatus;

    public constructor(init?: Partial<PmJobResponse>) { (Object as any).assign(this, init); }
}

export class PmJobRequest
{
    public JobID: number;

    public constructor(init?: Partial<PmJobRequest>) { (Object as any).assign(this, init); }
}

TypeScript PmJobRequest DTOs

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

HTTP + JSV

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

GET /v1/pm/job/{JobID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Job: 
	{
		JobID: 0,
		Name: String,
		Description: String,
		Status: String,
		StartDate: String,
		EndDate: String,
		CrewCount: 0,
		BudgetedHours: 0,
		EquipmentCount: 0,
		MaterialCount: 0,
		CrewCost: 0,
		EquipCost: 0,
		MatCost: 0,
		Cost: 0,
		NoCrew: False,
		EquipConflict: False,
		MaterialGap: False,
		ReadyPct: 0,
		Priority: String,
		Tags: 
		[
			String
		],
		Crew: 
		[
			{
				ContactID: 0,
				Name: String,
				Rate: 0,
				BudgetedHours: 0,
				IsOpen: False
			}
		],
		Equipment: 
		[
			{
				Id: 0,
				Name: String,
				Amount: 0,
				Qty: 0,
				Unit: String
			}
		],
		Materials: 
		[
			{
				Id: 0,
				Name: String,
				Amount: 0,
				Qty: 0,
				Unit: String
			}
		]
	},
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}