| POST,OPTIONS | /v1/field/application |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class ApplicationCreateRequest
Public Overridable Property WorkerScheduleItemID As Integer
Public Overridable Property AgreementJobID As Integer
Public Overridable Property JobID As Integer
Public Overridable Property ProjectID As Integer
Public Overridable Property AppliedAt As String
Public Overridable Property AreaTreated As String
Public Overridable Property MaterialID As Integer
Public Overridable Property AmountApplied As Decimal?
Public Overridable Property AmountUnit As String
Public Overridable Property Concentration As String
Public Overridable Property TreatedQuantity As Decimal?
Public Overridable Property TreatedUnit As String
Public Overridable Property TargetPest As String
Public Overridable Property WindSpeedMph As Decimal?
Public Overridable Property WindDirection As String
Public Overridable Property TemperatureF As Decimal?
Public Overridable Property WeatherSource As String
Public Overridable Property Notes As String
Public Overridable Property AmendsApplicationID As Integer
End Class
Public Partial Class ApplicationResponse
Public Overridable Property Applications As List(Of ApplicationView) = New List(Of ApplicationView)
Public Overridable Property ChemicalApplicationID As Integer
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class ApplicationView
Public Overridable Property ChemicalApplicationID As Integer
Public Overridable Property AppliedAt As Date?
Public Overridable Property AreaTreated As String
Public Overridable Property ProductName As String
Public Overridable Property EpaRegistrationNumber As String
Public Overridable Property AmountApplied As Decimal?
Public Overridable Property AmountUnit As String
Public Overridable Property Concentration As String
Public Overridable Property TreatedQuantity As Decimal?
Public Overridable Property TreatedUnit As String
Public Overridable Property TargetPest As String
Public Overridable Property ApplicatorName As String
Public Overridable Property ApplicatorLicence As String
Public Overridable Property WindSpeedMph As Decimal?
Public Overridable Property WindDirection As String
Public Overridable Property TemperatureF As Decimal?
Public Overridable Property Notes As String
Public Overridable Property SubmittedAt As Date?
Public Overridable Property AmendsApplicationID As Integer?
Public Overridable Property IsAmended As Boolean
End Class
End Namespace
End Namespace
VB.NET ApplicationCreateRequest DTOs
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/field/application HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"WorkerScheduleItemID":0,"AgreementJobID":0,"JobID":0,"ProjectID":0,"AppliedAt":"String","AreaTreated":"String","MaterialID":0,"AmountApplied":0,"AmountUnit":"String","Concentration":"String","TreatedQuantity":0,"TreatedUnit":"String","TargetPest":"String","WindSpeedMph":0,"WindDirection":"String","TemperatureF":0,"WeatherSource":"String","Notes":"String","AmendsApplicationID":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Applications":[{"ChemicalApplicationID":0,"AppliedAt":"0001-01-01T00:00:00.0000000","AreaTreated":"String","ProductName":"String","EpaRegistrationNumber":"String","AmountApplied":0,"AmountUnit":"String","Concentration":"String","TreatedQuantity":0,"TreatedUnit":"String","TargetPest":"String","ApplicatorName":"String","ApplicatorLicence":"String","WindSpeedMph":0,"WindDirection":"String","TemperatureF":0,"Notes":"String","SubmittedAt":"0001-01-01T00:00:00.0000000","AmendsApplicationID":0,"IsAmended":false}],"ChemicalApplicationID":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}