| 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 .xml suffix or ?format=xml
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/xml
Content-Type: application/xml
Content-Length: length
<MetaQueriesEdit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/digitaluapi.ServiceModel">
<Id>0</Id>
<DbTechnologiesId>0</DbTechnologiesId>
<Description>String</Description>
<CommandText>String</CommandText>
<CommandTypesId>0</CommandTypesId>
<CacheResult>false</CacheResult>
<CachetimeInSeconds>0</CachetimeInSeconds>
<QueryTypesId>0</QueryTypesId>
<DbTechnologyTemplatesId>0</DbTechnologyTemplatesId>
<LastModifiedDate>0001-01-01T00:00:00</LastModifiedDate>
<RowVersionGuid>00000000-0000-0000-0000-000000000000</RowVersionGuid>
<IsEnabled>false</IsEnabled>
<ConnectionsId>0</ConnectionsId>
</MetaQueriesEdit>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<MetaQueriesEditResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/digitaluapi.ServiceModel">
<CacheResult>false</CacheResult>
<CachetimeInSeconds>0</CachetimeInSeconds>
<CommandText>String</CommandText>
<CommandTypesId>0</CommandTypesId>
<ConnectionsId>0</ConnectionsId>
<DbTechnologiesId>0</DbTechnologiesId>
<DbTechnologyTemplatesId>0</DbTechnologyTemplatesId>
<Description>String</Description>
<Id>0</Id>
<IsEnabled>false</IsEnabled>
<LastModifiedDate>0001-01-01T00:00:00</LastModifiedDate>
<QueryTypesId>0</QueryTypesId>
<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>
<RowVersionGuid>00000000-0000-0000-0000-000000000000</RowVersionGuid>
</MetaQueriesEditResponse>