Trendsic Platform Service

<back to all web services

ApplicationCreateRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/field/application
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class ApplicationCreateRequest
{
    open var WorkerScheduleItemID:Int? = null
    open var AgreementJobID:Int? = null
    open var JobID:Int? = null
    open var ProjectID:Int? = null
    open var AppliedAt:String? = null
    open var AreaTreated:String? = null
    open var MaterialID:Int? = null
    open var AmountApplied:BigDecimal? = null
    open var AmountUnit:String? = null
    open var Concentration:String? = null
    open var TreatedQuantity:BigDecimal? = null
    open var TreatedUnit:String? = null
    open var TargetPest:String? = null
    open var WindSpeedMph:BigDecimal? = null
    open var WindDirection:String? = null
    open var TemperatureF:BigDecimal? = null
    open var WeatherSource:String? = null
    open var Notes:String? = null
    open var AmendsApplicationID:Int? = null
}

open class ApplicationResponse
{
    open var Applications:ArrayList<ApplicationView> = ArrayList<ApplicationView>()
    open var ChemicalApplicationID:Int? = null
    open var ResponseStatus:ResponseStatus? = null
}

open class ApplicationView
{
    open var ChemicalApplicationID:Int? = null
    open var AppliedAt:Date? = null
    open var AreaTreated:String? = null
    open var ProductName:String? = null
    open var EpaRegistrationNumber:String? = null
    open var AmountApplied:BigDecimal? = null
    open var AmountUnit:String? = null
    open var Concentration:String? = null
    open var TreatedQuantity:BigDecimal? = null
    open var TreatedUnit:String? = null
    open var TargetPest:String? = null
    open var ApplicatorName:String? = null
    open var ApplicatorLicence:String? = null
    open var WindSpeedMph:BigDecimal? = null
    open var WindDirection:String? = null
    open var TemperatureF:BigDecimal? = null
    open var Notes:String? = null
    open var SubmittedAt:Date? = null
    open var AmendsApplicationID:Int? = null
    open var IsAmended:Boolean? = null
}

Kotlin ApplicationCreateRequest DTOs

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.

POST /v1/field/application HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
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: text/csv
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"}}}