| Requires any of the roles: | Client, Admin, Partner |
| PUT | /scadmeta/meta_queries/{Id} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
@DataContract
public static class MetaQueriesEdit
{
@DataMember(Order=1)
public Integer Id = null;
@DataMember(Order=2)
public Short DbTechnologiesId = null;
@DataMember(Order=3)
public String Description = null;
@DataMember(Order=4)
public String CommandText = null;
@DataMember(Order=5)
public Short CommandTypesId = null;
@DataMember(Order=6)
public Boolean CacheResult = null;
@DataMember(Order=7)
public Integer CachetimeInSeconds = null;
@DataMember(Order=8)
public Integer QueryTypesId = null;
@DataMember(Order=9)
public Short DbTechnologyTemplatesId = null;
@DataMember(Order=10)
public Date LastModifiedDate = null;
@DataMember(Order=11)
public UUID RowVersionGuid = null;
@DataMember(Order=12)
public Boolean IsEnabled = null;
@DataMember(Order=13)
public Short ConnectionsId = null;
public Integer getId() { return Id; }
public MetaQueriesEdit setId(Integer value) { this.Id = value; return this; }
public Short getDbTechnologiesId() { return DbTechnologiesId; }
public MetaQueriesEdit setDbTechnologiesId(Short value) { this.DbTechnologiesId = value; return this; }
public String getDescription() { return Description; }
public MetaQueriesEdit setDescription(String value) { this.Description = value; return this; }
public String getCommandText() { return CommandText; }
public MetaQueriesEdit setCommandText(String value) { this.CommandText = value; return this; }
public Short getCommandTypesId() { return CommandTypesId; }
public MetaQueriesEdit setCommandTypesId(Short value) { this.CommandTypesId = value; return this; }
public Boolean isCacheResult() { return CacheResult; }
public MetaQueriesEdit setCacheResult(Boolean value) { this.CacheResult = value; return this; }
public Integer getCachetimeInSeconds() { return CachetimeInSeconds; }
public MetaQueriesEdit setCachetimeInSeconds(Integer value) { this.CachetimeInSeconds = value; return this; }
public Integer getQueryTypesId() { return QueryTypesId; }
public MetaQueriesEdit setQueryTypesId(Integer value) { this.QueryTypesId = value; return this; }
public Short getDbTechnologyTemplatesId() { return DbTechnologyTemplatesId; }
public MetaQueriesEdit setDbTechnologyTemplatesId(Short value) { this.DbTechnologyTemplatesId = value; return this; }
public Date getLastModifiedDate() { return LastModifiedDate; }
public MetaQueriesEdit setLastModifiedDate(Date value) { this.LastModifiedDate = value; return this; }
public UUID getRowVersionGuid() { return RowVersionGuid; }
public MetaQueriesEdit setRowVersionGuid(UUID value) { this.RowVersionGuid = value; return this; }
public Boolean getIsEnabled() { return IsEnabled; }
public MetaQueriesEdit setIsEnabled(Boolean value) { this.IsEnabled = value; return this; }
public Short getConnectionsId() { return ConnectionsId; }
public MetaQueriesEdit setConnectionsId(Short value) { this.ConnectionsId = value; return this; }
}
public static class MetaQueriesEditResponse
{
@DataMember(Order=1)
public Integer Id = null;
@DataMember(Order=2)
public Short DbTechnologiesId = null;
@DataMember(Order=3)
public String Description = null;
@DataMember(Order=4)
public String CommandText = null;
@DataMember(Order=5)
public Short CommandTypesId = null;
@DataMember(Order=6)
public Boolean CacheResult = null;
@DataMember(Order=7)
public Integer CachetimeInSeconds = null;
@DataMember(Order=8)
public Integer QueryTypesId = null;
@DataMember(Order=9)
public Short DbTechnologyTemplatesId = null;
@DataMember(Order=10)
public Date LastModifiedDate = null;
@DataMember(Order=11)
public UUID RowVersionGuid = null;
@DataMember(Order=12)
public Boolean IsEnabled = null;
@DataMember(Order=13)
public Short ConnectionsId = null;
@DataMember(Order=15)
public ResponseStatus ResponseStatus = null;
public Integer getId() { return Id; }
public MetaQueriesEditResponse setId(Integer value) { this.Id = value; return this; }
public Short getDbTechnologiesId() { return DbTechnologiesId; }
public MetaQueriesEditResponse setDbTechnologiesId(Short value) { this.DbTechnologiesId = value; return this; }
public String getDescription() { return Description; }
public MetaQueriesEditResponse setDescription(String value) { this.Description = value; return this; }
public String getCommandText() { return CommandText; }
public MetaQueriesEditResponse setCommandText(String value) { this.CommandText = value; return this; }
public Short getCommandTypesId() { return CommandTypesId; }
public MetaQueriesEditResponse setCommandTypesId(Short value) { this.CommandTypesId = value; return this; }
public Boolean isCacheResult() { return CacheResult; }
public MetaQueriesEditResponse setCacheResult(Boolean value) { this.CacheResult = value; return this; }
public Integer getCachetimeInSeconds() { return CachetimeInSeconds; }
public MetaQueriesEditResponse setCachetimeInSeconds(Integer value) { this.CachetimeInSeconds = value; return this; }
public Integer getQueryTypesId() { return QueryTypesId; }
public MetaQueriesEditResponse setQueryTypesId(Integer value) { this.QueryTypesId = value; return this; }
public Short getDbTechnologyTemplatesId() { return DbTechnologyTemplatesId; }
public MetaQueriesEditResponse setDbTechnologyTemplatesId(Short value) { this.DbTechnologyTemplatesId = value; return this; }
public Date getLastModifiedDate() { return LastModifiedDate; }
public MetaQueriesEditResponse setLastModifiedDate(Date value) { this.LastModifiedDate = value; return this; }
public UUID getRowVersionGuid() { return RowVersionGuid; }
public MetaQueriesEditResponse setRowVersionGuid(UUID value) { this.RowVersionGuid = value; return this; }
public Boolean getIsEnabled() { return IsEnabled; }
public MetaQueriesEditResponse setIsEnabled(Boolean value) { this.IsEnabled = value; return this; }
public Short getConnectionsId() { return ConnectionsId; }
public MetaQueriesEditResponse setConnectionsId(Short value) { this.ConnectionsId = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public MetaQueriesEditResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /scadmeta/meta_queries/{Id} HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Id":0,"DbTechnologiesId":0,"Description":"String","CommandText":"String","CommandTypesId":0,"CacheResult":false,"CachetimeInSeconds":0,"QueryTypesId":0,"DbTechnologyTemplatesId":0,"LastModifiedDate":"0001-01-01T00:00:00.0000000","RowVersionGuid":"00000000000000000000000000000000","IsEnabled":false,"ConnectionsId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Id":0,"DbTechnologiesId":0,"Description":"String","CommandText":"String","CommandTypesId":0,"CacheResult":false,"CachetimeInSeconds":0,"QueryTypesId":0,"DbTechnologyTemplatesId":0,"LastModifiedDate":"0001-01-01T00:00:00.0000000","RowVersionGuid":"00000000000000000000000000000000","IsEnabled":false,"ConnectionsId":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}