| Requires any of the roles: | Client, Admin, Partner |
| 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; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<UploadFieldsEdit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/digitaluapi.ServiceModel">
<Id>0</Id>
<FieldName>String</FieldName>
<Required>false</Required>
<UploadType>String</UploadType>
<Label>String</Label>
<UploadSubtype>String</UploadSubtype>
<IsEnabled>false</IsEnabled>
<SortOrder>0</SortOrder>
<Help>String</Help>
<Placeholder>String</Placeholder>
</UploadFieldsEdit>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<UploadFieldsEditResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/digitaluapi.ServiceModel">
<FieldName>String</FieldName>
<Help>String</Help>
<Id>0</Id>
<IsEnabled>false</IsEnabled>
<Label>String</Label>
<Placeholder>String</Placeholder>
<Required>false</Required>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<SortOrder>0</SortOrder>
<UploadSubtype>String</UploadSubtype>
<UploadType>String</UploadType>
</UploadFieldsEditResponse>