sfgboxapi

<back to all web services

GrowplansUsersAdd

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

export class GrowplansUsersAddResponse
{
    // @DataMember(Order=2)
    public appUserId: number;

    // @DataMember(Order=3)
    public name: string;

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

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

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

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

    // @DataMember(Order=3)
    public name: string;

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

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

TypeScript GrowplansUsersAdd 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 /growplans_users HTTP/1.1 
Host: sfgboxapi.dev.scadsoftware.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"appUserId":0,"name":"String","numberBoxes":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"appUserId":0,"name":"String","numberBoxes":0,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}