sfgboxapi

<back to all web services

GrowthCurvesAdd

Requires Authentication
The following routes are available for this service:
POST/growth_curves
"use strict";
export class GrowthCurvesAddResponse {
    /** @param {{tenantsId?:number,zonesId?:number,varietiesId?:number,weekNumber?:number,cropHeight?:number,responseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    tenantsId;
    /** @type {number} */
    zonesId;
    /** @type {number} */
    varietiesId;
    /** @type {number} */
    weekNumber;
    /** @type {number} */
    cropHeight;
    /** @type {ResponseStatus} */
    responseStatus;
}
export class GrowthCurvesAdd {
    /** @param {{tenantsId?:number,zonesId?:number,varietiesId?:number,weekNumber?:number,cropHeight?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    tenantsId;
    /** @type {number} */
    zonesId;
    /** @type {number} */
    varietiesId;
    /** @type {number} */
    weekNumber;
    /** @type {number} */
    cropHeight;
}

JavaScript GrowthCurvesAdd DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /growth_curves HTTP/1.1 
Host: sfgboxapi.dev.scadsoftware.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"tenantsId":0,"zonesId":0,"varietiesId":0,"weekNumber":0,"cropHeight":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"tenantsId":0,"zonesId":0,"varietiesId":0,"weekNumber":0,"cropHeight":0,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}