| 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 .other suffix or ?format=other
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/jsonl
Content-Type: text/jsonl
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/jsonl
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"}}}