Trendsic Platform Service

<back to all web services

FieldLogSubmitRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/fieldlog/submit
FieldLogSubmitRequest Parameters:
NameParameterData TypeRequiredDescription
ProjectIdbodyintNo
JobIdbodyintNo
LogDatebodystringNo
NotesbodystringNo
WeatherbodystringNo
TempFbodyintNo
WeatherDelayHoursbodydoubleNo
ToolboxTalkbodystringNo
IncidentOccurredbodyboolNo
IncidentTypebodystringNo
IncidentNotebodystringNo
IncidentPhotoCountbodyintNo
CrewbodyList<FieldLogCrew>No
EquipmentbodyList<FieldLogEquipment>No
SubsbodyList<FieldLogSub>No
QuantitiesbodyList<FieldLogQuantity>No
DeliveriesbodyList<FieldLogDelivery>No
ConsumedbodyList<FieldLogConsumed>No
FieldLogCrew Parameters:
NameParameterData TypeRequiredDescription
ContactIdformintNo
StatusCodeformstringNo
HoursformdoubleNo
CostCodeformstringNo
SplitCostCodeformstringNo
SplitHoursformdoubleNo
FieldLogEquipment Parameters:
NameParameterData TypeRequiredDescription
EquipmentIdformintNo
EquipmentKeyformstringNo
StatusCodeformstringNo
EngineHoursformdoubleNo
FuelGallonsformdoubleNo
IdleReasonformstringNo
DownNoteformstringNo
FieldLogSub Parameters:
NameParameterData TypeRequiredDescription
ContactIdformintNo
NameformstringNo
TradeformstringNo
HeadCountformintNo
HoursPerformdoubleNo
SourceCodeformstringNo
ReporterformstringNo
NoteformstringNo
VerifiedformboolNo
StateCodeformstringNo
FieldLogQuantity Parameters:
NameParameterData TypeRequiredDescription
PayItemCodeformstringNo
NameformstringNo
UnitformstringNo
TodayQtyformdoubleNo
FieldLogDelivery Parameters:
NameParameterData TypeRequiredDescription
PoformstringNo
MaterialformstringNo
StatusCodeformstringNo
QtyReceivedformstringNo
FieldLogConsumed Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
QtyformstringNo
UseformstringNo
FieldLogSubmitResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
FieldLogIdformintNo
FieldLogUIDformGuidNo
StatusformstringNo

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /v1/fieldlog/submit HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ProjectId":0,"JobId":0,"LogDate":"String","Notes":"String","Weather":"String","TempF":0,"WeatherDelayHours":0,"ToolboxTalk":"String","IncidentOccurred":false,"IncidentType":"String","IncidentNote":"String","IncidentPhotoCount":0,"Crew":[{"ContactId":0,"StatusCode":"String","Hours":0,"CostCode":"String","SplitCostCode":"String","SplitHours":0}],"Equipment":[{"EquipmentId":0,"EquipmentKey":"String","StatusCode":"String","EngineHours":0,"FuelGallons":0,"IdleReason":"String","DownNote":"String"}],"Subs":[{"ContactId":0,"Name":"String","Trade":"String","HeadCount":0,"HoursPer":0,"SourceCode":"String","Reporter":"String","Note":"String","Verified":false,"StateCode":"String"}],"Quantities":[{"PayItemCode":"String","Name":"String","Unit":"String","TodayQty":0}],"Deliveries":[{"Po":"String","Material":"String","StatusCode":"String","QtyReceived":"String"}],"Consumed":[{"Name":"String","Qty":"String","Use":"String"}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"FieldLogId":0,"FieldLogUID":"00000000000000000000000000000000","Status":"String"}