sfgboxapi

<back to all web services

GrowthCurvesAdd

Requires Authentication
The following routes are available for this service:
POST/growth_curves

export class GrowthCurvesAddResponse
{
    // @DataMember(Order=2)
    public tenantsId: number;

    // @DataMember(Order=3)
    public zonesId: number;

    // @DataMember(Order=4)
    public varietiesId: number;

    // @DataMember(Order=5)
    public weekNumber: number;

    // @DataMember(Order=6)
    public cropHeight: number;

    // @DataMember(Order=7)
    public responseStatus: ResponseStatus;

    public constructor(init?: Partial<GrowthCurvesAddResponse>) { (Object as any).assign(this, init); }
}

// @DataContract
export class GrowthCurvesAdd
{
    // @DataMember(Order=2)
    // @Validate(Validator="NotNull")
    public tenantsId: number;

    // @DataMember(Order=3)
    // @Validate(Validator="NotNull")
    public zonesId: number;

    // @DataMember(Order=4)
    // @Validate(Validator="NotNull")
    public varietiesId: number;

    // @DataMember(Order=5)
    // @Validate(Validator="NotNull")
    public weekNumber: number;

    // @DataMember(Order=6)
    // @Validate(Validator="NotNull")
    public cropHeight: number;

    public constructor(init?: Partial<GrowthCurvesAdd>) { (Object as any).assign(this, init); }
}

TypeScript 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: api.sfgtec.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"}}}