digitaluapi

<back to all web services

PartnerAppUsersAdd

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
POST/partner_app_users
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

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

        @DataMember(Order=3)
        @Validate(Validator="NotNull")
        public Integer AppUserId = null;
        
        public Long getPartnersId() { return PartnersId; }
        public PartnerAppUsersAdd setPartnersId(Long value) { this.PartnersId = value; return this; }
        public Integer getAppUserId() { return AppUserId; }
        public PartnerAppUsersAdd setAppUserId(Integer value) { this.AppUserId = value; return this; }
    }

    public static class PartnerAppUsersAddResponse
    {
        @DataMember(Order=2)
        public Long PartnersId = null;

        @DataMember(Order=3)
        public Integer AppUserId = null;

        @DataMember(Order=5)
        public ResponseStatus ResponseStatus = null;
        
        public Long getPartnersId() { return PartnersId; }
        public PartnerAppUsersAddResponse setPartnersId(Long value) { this.PartnersId = value; return this; }
        public Integer getAppUserId() { return AppUserId; }
        public PartnerAppUsersAddResponse setAppUserId(Integer value) { this.AppUserId = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public PartnerAppUsersAddResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

}

Java PartnerAppUsersAdd DTOs

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

HTTP + JSV

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

POST /partner_app_users HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	PartnersId: 0,
	AppUserId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	PartnersId: 0,
	AppUserId: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}