sfgboxapi

<back to all web services

UsersGroupsUsersAdd

Requires Authentication
The following routes are available for this service:
POST/users_groups_users
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    @DataContract
    public static class UsersGroupsUsersAdd
    {
        @DataMember(Order=2)
        @Validate(Validator="NotNull")
        public Long usersGroupsId = null;

        @DataMember(Order=3)
        @Validate(Validator="NotNull")
        public Long appUserId = null;
        
        public Long getUsersGroupsId() { return usersGroupsId; }
        public UsersGroupsUsersAdd setUsersGroupsId(Long value) { this.usersGroupsId = value; return this; }
        public Long getAppUserId() { return appUserId; }
        public UsersGroupsUsersAdd setAppUserId(Long value) { this.appUserId = value; return this; }
    }

    public static class UsersGroupsUsersAddResponse
    {
        @DataMember(Order=2)
        public Long usersGroupsId = null;

        @DataMember(Order=3)
        public Long appUserId = null;

        @DataMember(Order=5)
        public ResponseStatus responseStatus = null;
        
        public Long getUsersGroupsId() { return usersGroupsId; }
        public UsersGroupsUsersAddResponse setUsersGroupsId(Long value) { this.usersGroupsId = value; return this; }
        public Long getAppUserId() { return appUserId; }
        public UsersGroupsUsersAddResponse setAppUserId(Long value) { this.appUserId = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public UsersGroupsUsersAddResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

}

Java UsersGroupsUsersAdd 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 /users_groups_users HTTP/1.1 
Host: api.sfgtec.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"usersGroupsId":0,"appUserId":0}
HTTP/1.1 200 OK
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"}}}