Trendsic Platform Service

<back to all web services

PlanningRequest

Requires Authentication
The following routes are available for this service:
GET/v1/workforce/planning
PlanningRequest Parameters:
NameParameterData TypeRequiredDescription
AsOfqueryDateTime?No
PlanningResponse Parameters:
NameParameterData TypeRequiredDescription
SurfaceformPlanningSurfaceNo
CanSeePayformboolNo
ResponseStatusformResponseStatusNo
PlanningSurface Parameters:
NameParameterData TypeRequiredDescription
WeekLabelformstringNo
WeekStartformDateTimeNo
WorkerCountformintNo
OtformOtExposureBoardNo
PerDiemformPerDiemBoardNo
MarginformMarginBoardNo
UtilizationformUtilizationBoardNo
SuggestionsformList<PlanningSuggestion>No
OtExposureBoard Parameters:
NameParameterData TypeRequiredDescription
TotalOtCostformdecimal?No
TotalOtHoursformdecimalNo
OverCountformintNo
WorkerCountformintNo
RowsformList<OtRow>No
OtRow Parameters:
NameParameterData TypeRequiredDescription
ContactIDformintNo
WorkerNameformstringNo
ClassCodeformstringNo
CrewformstringNo
JobformstringNo
PatternLabelformstringNo
ProjHoursformdecimalNo
OtHoursformdecimalNo
DtHoursformdecimalNo
OtCostformdecimal?No
StateformstringNo
ToneformstringNo
PerDiemBoard Parameters:
NameParameterData TypeRequiredDescription
TotalCostformdecimalNo
NonTaxableformdecimalNo
TaxableformdecimalNo
AwayCountformintNo
JobsformList<PerDiemJobRow>No
PerDiemJobRow Parameters:
NameParameterData TypeRequiredDescription
JobformstringNo
TotalformdecimalNo
NonTaxformdecimalNo
TaxformdecimalNo
DaysformintNo
AwayCountformintNo
DayRateFlagformboolNo
MarginBoard Parameters:
NameParameterData TypeRequiredDescription
JobCountformintNo
TotalFadeformdecimal?No
JobsformList<MarginJobRow>No
MarginJobRow Parameters:
NameParameterData TypeRequiredDescription
JobformstringNo
BasePctformdecimalNo
ProjPctformdecimalNo
FadePtsformdecimalNo
SeverityformstringNo
OtCostformdecimal?No
PerDiemformdecimalNo
UtilizationBoard Parameters:
NameParameterData TypeRequiredDescription
UnderCountformintNo
OverCountformintNo
RowsformList<UtilRow>No
UtilRow Parameters:
NameParameterData TypeRequiredDescription
ContactIDformintNo
WorkerNameformstringNo
CrewformstringNo
ProjHoursformdecimalNo
BaselineHoursformdecimalNo
PctformdecimalNo
BandformstringNo
PlanningSuggestion Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
KindformstringNo
TitleformstringNo
DetailformstringNo
SaveTextformstringNo
EffectformstringNo
RuleIdformstringNo
LegalNoteformstringNo
ApplyLabelformstringNo
SeverityformstringNo

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/workforce/planning HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Surface: 
	{
		WeekLabel: String,
		WeekStart: 0001-01-01,
		WorkerCount: 0,
		Ot: 
		{
			TotalOtCost: 0,
			TotalOtHours: 0,
			OverCount: 0,
			WorkerCount: 0,
			Rows: 
			[
				{
					ContactID: 0,
					WorkerName: String,
					ClassCode: String,
					Crew: String,
					Job: String,
					PatternLabel: String,
					ProjHours: 0,
					OtHours: 0,
					DtHours: 0,
					OtCost: 0,
					State: String,
					Tone: String
				}
			]
		},
		PerDiem: 
		{
			TotalCost: 0,
			NonTaxable: 0,
			Taxable: 0,
			AwayCount: 0,
			Jobs: 
			[
				{
					Job: String,
					Total: 0,
					NonTax: 0,
					Tax: 0,
					Days: 0,
					AwayCount: 0,
					DayRateFlag: False
				}
			]
		},
		Margin: 
		{
			JobCount: 0,
			TotalFade: 0,
			Jobs: 
			[
				{
					Job: String,
					BasePct: 0,
					ProjPct: 0,
					FadePts: 0,
					Severity: String,
					OtCost: 0,
					PerDiem: 0
				}
			]
		},
		Utilization: 
		{
			UnderCount: 0,
			OverCount: 0,
			Rows: 
			[
				{
					ContactID: 0,
					WorkerName: String,
					Crew: String,
					ProjHours: 0,
					BaselineHours: 0,
					Pct: 0,
					Band: String
				}
			]
		},
		Suggestions: 
		[
			{
				Id: String,
				Kind: String,
				Title: String,
				Detail: String,
				SaveText: String,
				Effect: String,
				RuleId: String,
				LegalNote: String,
				ApplyLabel: String,
				Severity: String
			}
		]
	},
	CanSeePay: False,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}