Trendsic Platform Service

<back to all web services

FieldLogPrefillRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/fieldlog/prefill
FieldLogPrefillRequest Parameters:
NameParameterData TypeRequiredDescription
ProjectIdqueryintNo
DatequerystringNo
FieldLogPrefillResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ProjectNameformstringNo
SolicitationNumberformstringNo
StationRangeformstringNo
CrewformList<FieldLogCrewPrefill>No
EquipmentformList<FieldLogEquipmentPrefill>No
PayItemsformList<FieldLogPayItemPrefill>No
SubsformList<FieldLogSubPrefill>No
PriorDayFilledformboolNo
FieldLogCrewPrefill Parameters:
NameParameterData TypeRequiredDescription
ContactIdformintNo
NameformstringNo
RoleformstringNo
DefaultHoursformdoubleNo
CostCodeformstringNo
FieldLogEquipmentPrefill Parameters:
NameParameterData TypeRequiredDescription
EquipmentIdformintNo
NameformstringNo
CodeformstringNo
FieldLogPayItemPrefill Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
NameformstringNo
UnitformstringNo
ToDateformdoubleNo
TotalformdoubleNo
FieldLogSubPrefill Parameters:
NameParameterData TypeRequiredDescription
ContactIdformintNo
NameformstringNo
TradeformstringNo

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

HTTP + CSV

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

GET /v1/fieldlog/prefill HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ProjectName":"String","SolicitationNumber":"String","StationRange":"String","Crew":[{"ContactId":0,"Name":"String","Role":"String","DefaultHours":0,"CostCode":"String"}],"Equipment":[{"EquipmentId":0,"Name":"String","Code":"String"}],"PayItems":[{"Code":"String","Name":"String","Unit":"String","ToDate":0,"Total":0}],"Subs":[{"ContactId":0,"Name":"String","Trade":"String"}],"PriorDayFilled":false}