Trendsic Platform Service

<back to all web services

ApplicationCreateRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/field/application
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;

namespace CRM.AgencyPlatform.API.Internal
{
    public partial class ApplicationCreateRequest
    {
        public virtual int WorkerScheduleItemID { get; set; }
        public virtual int AgreementJobID { get; set; }
        public virtual int JobID { get; set; }
        public virtual int ProjectID { get; set; }
        public virtual string AppliedAt { get; set; }
        public virtual string AreaTreated { get; set; }
        public virtual int MaterialID { get; set; }
        public virtual decimal? AmountApplied { get; set; }
        public virtual string AmountUnit { get; set; }
        public virtual string Concentration { get; set; }
        public virtual decimal? TreatedQuantity { get; set; }
        public virtual string TreatedUnit { get; set; }
        public virtual string TargetPest { get; set; }
        public virtual decimal? WindSpeedMph { get; set; }
        public virtual string WindDirection { get; set; }
        public virtual decimal? TemperatureF { get; set; }
        public virtual string WeatherSource { get; set; }
        public virtual string Notes { get; set; }
        public virtual int AmendsApplicationID { get; set; }
    }

    public partial class ApplicationResponse
    {
        public virtual List<ApplicationView> Applications { get; set; } = [];
        public virtual int ChemicalApplicationID { get; set; }
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

    public partial class ApplicationView
    {
        public virtual int ChemicalApplicationID { get; set; }
        public virtual DateTime? AppliedAt { get; set; }
        public virtual string AreaTreated { get; set; }
        public virtual string ProductName { get; set; }
        public virtual string EpaRegistrationNumber { get; set; }
        public virtual decimal? AmountApplied { get; set; }
        public virtual string AmountUnit { get; set; }
        public virtual string Concentration { get; set; }
        public virtual decimal? TreatedQuantity { get; set; }
        public virtual string TreatedUnit { get; set; }
        public virtual string TargetPest { get; set; }
        public virtual string ApplicatorName { get; set; }
        public virtual string ApplicatorLicence { get; set; }
        public virtual decimal? WindSpeedMph { get; set; }
        public virtual string WindDirection { get; set; }
        public virtual decimal? TemperatureF { get; set; }
        public virtual string Notes { get; set; }
        public virtual DateTime? SubmittedAt { get; set; }
        public virtual int? AmendsApplicationID { get; set; }
        public virtual bool IsAmended { get; set; }
    }

}

C# ApplicationCreateRequest DTOs

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.

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

{
	Applications: 
	[
		{
			ChemicalApplicationID: 0,
			AppliedAt: 0001-01-01,
			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-01,
			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
		}
	}
}