Trendsic Platform Service

<back to all web services

RoutePlanPropertyCreateRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/routeplan/property
"use strict";
export class RoutePlanPropertyCreateResponse {
    /** @param {{AgreementID?:number,ProjectID?:number,ResponseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    AgreementID;
    /** @type {number} */
    ProjectID;
    /** @type {ResponseStatus} */
    ResponseStatus;
}
export class RoutePlanPropertyCreateRequest {
    /** @param {{Name?:string,Acreage?:string,Minutes?:number,Profile?:string,Dow?:number,EquipmentIDs?:number[],TerritoryID?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Name;
    /** @type {string} */
    Acreage;
    /** @type {number} */
    Minutes;
    /** @type {string} */
    Profile;
    /** @type {number} */
    Dow;
    /** @type {number[]} */
    EquipmentIDs = [];
    /** @type {number} */
    TerritoryID;
}

JavaScript RoutePlanPropertyCreateRequest 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/routeplan/property HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Name: String,
	Acreage: String,
	Minutes: 0,
	Profile: String,
	Dow: 0,
	EquipmentIDs: 
	[
		0
	],
	TerritoryID: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	AgreementID: 0,
	ProjectID: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}