sfgboxapi

<back to all web services

UsersGroupsUsersAutoQueryAdd


export class UsersGroupsUsers
{
    // @DataMember(Order=1)
    // @Required()
    public id: number;

    // @DataMember(Order=2)
    // @Required()
    // @References("typeof(sfgboxapi.ServiceModel.Types.UsersGroups)")
    public usersGroupsId: number;

    // @DataMember(Order=3)
    // @Required()
    // @References("typeof(sfgboxapi.ServiceModel.Types.AppUser)")
    public appUserId: number;

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

export class UsersGroupsUsersAutoQueryAdd implements ICreateDb<UsersGroupsUsers>
{
    // @DataMember(Order=2)
    public usersGroupsId: number;

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

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

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

TypeScript UsersGroupsUsersAutoQueryAdd DTOs

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

HTTP + CSV

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

POST /csv/reply/UsersGroupsUsersAutoQueryAdd HTTP/1.1 
Host: api-stage.smartfarmertech.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"usersGroupsId":0,"appUserId":0,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"id":0,"usersGroupsId":0,"appUserId":0}