digitaluapi

<back to all web services

UploadFieldsEdit

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

public class dtos
{

    @DataContract
    public static class UploadFieldsEdit
    {
        @DataMember(Order=1)
        @Validate(Validator="NotNull")
        public Integer Id = null;

        @DataMember(Order=2)
        public String FieldName = null;

        @DataMember(Order=3)
        public Boolean Required = null;

        @DataMember(Order=4)
        public String UploadType = null;

        @DataMember(Order=5)
        public String Label = null;

        @DataMember(Order=6)
        public String UploadSubtype = null;

        @DataMember(Order=7)
        public Boolean IsEnabled = null;

        @DataMember(Order=8)
        public Double SortOrder = null;

        @DataMember(Order=9)
        public String Help = null;

        @DataMember(Order=10)
        public String Placeholder = null;
        
        public Integer getId() { return Id; }
        public UploadFieldsEdit setId(Integer value) { this.Id = value; return this; }
        public String getFieldName() { return FieldName; }
        public UploadFieldsEdit setFieldName(String value) { this.FieldName = value; return this; }
        public Boolean isRequired() { return Required; }
        public UploadFieldsEdit setRequired(Boolean value) { this.Required = value; return this; }
        public String getUploadType() { return UploadType; }
        public UploadFieldsEdit setUploadType(String value) { this.UploadType = value; return this; }
        public String getLabel() { return Label; }
        public UploadFieldsEdit setLabel(String value) { this.Label = value; return this; }
        public String getUploadSubtype() { return UploadSubtype; }
        public UploadFieldsEdit setUploadSubtype(String value) { this.UploadSubtype = value; return this; }
        public Boolean getIsEnabled() { return IsEnabled; }
        public UploadFieldsEdit setIsEnabled(Boolean value) { this.IsEnabled = value; return this; }
        public Double getSortOrder() { return SortOrder; }
        public UploadFieldsEdit setSortOrder(Double value) { this.SortOrder = value; return this; }
        public String getHelp() { return Help; }
        public UploadFieldsEdit setHelp(String value) { this.Help = value; return this; }
        public String getPlaceholder() { return Placeholder; }
        public UploadFieldsEdit setPlaceholder(String value) { this.Placeholder = value; return this; }
    }

    public static class UploadFieldsEditResponse
    {
        @DataMember(Order=1)
        public Integer Id = null;

        @DataMember(Order=2)
        public String FieldName = null;

        @DataMember(Order=3)
        public Boolean Required = null;

        @DataMember(Order=4)
        public String UploadType = null;

        @DataMember(Order=5)
        public String Label = null;

        @DataMember(Order=6)
        public String UploadSubtype = null;

        @DataMember(Order=7)
        public Boolean IsEnabled = null;

        @DataMember(Order=8)
        public Double SortOrder = null;

        @DataMember(Order=9)
        public String Help = null;

        @DataMember(Order=10)
        public String Placeholder = null;

        @DataMember(Order=12)
        public ResponseStatus ResponseStatus = null;
        
        public Integer getId() { return Id; }
        public UploadFieldsEditResponse setId(Integer value) { this.Id = value; return this; }
        public String getFieldName() { return FieldName; }
        public UploadFieldsEditResponse setFieldName(String value) { this.FieldName = value; return this; }
        public Boolean isRequired() { return Required; }
        public UploadFieldsEditResponse setRequired(Boolean value) { this.Required = value; return this; }
        public String getUploadType() { return UploadType; }
        public UploadFieldsEditResponse setUploadType(String value) { this.UploadType = value; return this; }
        public String getLabel() { return Label; }
        public UploadFieldsEditResponse setLabel(String value) { this.Label = value; return this; }
        public String getUploadSubtype() { return UploadSubtype; }
        public UploadFieldsEditResponse setUploadSubtype(String value) { this.UploadSubtype = value; return this; }
        public Boolean getIsEnabled() { return IsEnabled; }
        public UploadFieldsEditResponse setIsEnabled(Boolean value) { this.IsEnabled = value; return this; }
        public Double getSortOrder() { return SortOrder; }
        public UploadFieldsEditResponse setSortOrder(Double value) { this.SortOrder = value; return this; }
        public String getHelp() { return Help; }
        public UploadFieldsEditResponse setHelp(String value) { this.Help = value; return this; }
        public String getPlaceholder() { return Placeholder; }
        public UploadFieldsEditResponse setPlaceholder(String value) { this.Placeholder = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public UploadFieldsEditResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

}

Java UploadFieldsEdit 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.

PUT /upload_fields/{Id} HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Id: 0,
	FieldName: String,
	Required: False,
	UploadType: String,
	Label: String,
	UploadSubtype: String,
	IsEnabled: False,
	SortOrder: 0,
	Help: String,
	Placeholder: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Id: 0,
	FieldName: String,
	Required: False,
	UploadType: String,
	Label: String,
	UploadSubtype: String,
	IsEnabled: False,
	SortOrder: 0,
	Help: String,
	Placeholder: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}