| Requires any of the roles: | Client, Admin, Partner |
| POST | /lookup_lists |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
@DataContract
public static class LookupListsAdd
{
@DataMember(Order=2)
@Validate(Validator="NotNull")
public String Description = null;
@DataMember(Order=3)
@Validate(Validator="NotNull")
public Boolean IsEnabled = null;
@DataMember(Order=4)
@Validate(Validator="NotNull")
public Integer LookupListCategoryId = null;
@DataMember(Order=5)
@Validate(Validator="NotNull")
public Date LastModifiedDate = null;
@DataMember(Order=6)
@Validate(Validator="NotNull")
public UUID RowVersionGuid = null;
public String getDescription() { return Description; }
public LookupListsAdd setDescription(String value) { this.Description = value; return this; }
public Boolean getIsEnabled() { return IsEnabled; }
public LookupListsAdd setIsEnabled(Boolean value) { this.IsEnabled = value; return this; }
public Integer getLookupListCategoryId() { return LookupListCategoryId; }
public LookupListsAdd setLookupListCategoryId(Integer value) { this.LookupListCategoryId = value; return this; }
public Date getLastModifiedDate() { return LastModifiedDate; }
public LookupListsAdd setLastModifiedDate(Date value) { this.LastModifiedDate = value; return this; }
public UUID getRowVersionGuid() { return RowVersionGuid; }
public LookupListsAdd setRowVersionGuid(UUID value) { this.RowVersionGuid = value; return this; }
}
public static class LookupListsAddResponse
{
@DataMember(Order=2)
public String Description = null;
@DataMember(Order=3)
public Boolean IsEnabled = null;
@DataMember(Order=4)
public Integer LookupListCategoryId = null;
@DataMember(Order=5)
public Date LastModifiedDate = null;
@DataMember(Order=6)
public UUID RowVersionGuid = null;
@DataMember(Order=8)
public ResponseStatus ResponseStatus = null;
public String getDescription() { return Description; }
public LookupListsAddResponse setDescription(String value) { this.Description = value; return this; }
public Boolean getIsEnabled() { return IsEnabled; }
public LookupListsAddResponse setIsEnabled(Boolean value) { this.IsEnabled = value; return this; }
public Integer getLookupListCategoryId() { return LookupListCategoryId; }
public LookupListsAddResponse setLookupListCategoryId(Integer value) { this.LookupListCategoryId = value; return this; }
public Date getLastModifiedDate() { return LastModifiedDate; }
public LookupListsAddResponse setLastModifiedDate(Date value) { this.LastModifiedDate = value; return this; }
public UUID getRowVersionGuid() { return RowVersionGuid; }
public LookupListsAddResponse setRowVersionGuid(UUID value) { this.RowVersionGuid = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public LookupListsAddResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /lookup_lists HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Description: String,
IsEnabled: False,
LookupListCategoryId: 0,
LastModifiedDate: 0001-01-01,
RowVersionGuid: 00000000000000000000000000000000
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Description: String,
IsEnabled: False,
LookupListCategoryId: 0,
LastModifiedDate: 0001-01-01,
RowVersionGuid: 00000000000000000000000000000000,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}