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}
PmJobRequest Parameters:
NameParameterData TypeRequiredDescription
JobIDpathintNo
PmJobResponse Parameters:
NameParameterData TypeRequiredDescription
JobformPmJobNo
ResponseStatusformResponseStatusNo
PmJob Parameters:
NameParameterData TypeRequiredDescription
JobIDformintNo
NameformstringNo
DescriptionformstringNo
StatusformstringNo
StartDateformstringNo
EndDateformstringNo
CrewCountformintNo
BudgetedHoursformdoubleNo
EquipmentCountformintNo
MaterialCountformintNo
CrewCostformdoubleNo
EquipCostformdoubleNo
MatCostformdoubleNo
CostformdoubleNo
NoCrewformboolNo
EquipConflictformboolNo
MaterialGapformboolNo
ReadyPctformintNo
PriorityformstringNo
TagsformList<string>No
CrewformList<PmJobCrew>No
EquipmentformList<PmJobResource>No
MaterialsformList<PmJobResource>No
PmJobCrew Parameters:
NameParameterData TypeRequiredDescription
ContactIDformintNo
NameformstringNo
RateformdoubleNo
BudgetedHoursformdoubleNo
IsOpenformboolNo
PmJobResource Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
AmountformdoubleNo
QtyformintNo
UnitformstringNo

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
		}
	}
}