| Requires any of the roles: | Client, Admin, Partner |
| POST | /scadmeta/meta_queries |
|---|
"use strict";
export class MetaQueriesAddResponse {
/** @param {{Id?:number,DbTechnologiesId?:number,Description?:string,CommandText?:string,CommandTypesId?:number,CacheResult?:boolean,CachetimeInSeconds?:number,QueryTypesId?:number,DbTechnologyTemplatesId?:number,LastModifiedDate?:string,RowVersionGuid?:string,IsEnabled?:boolean,ConnectionsId?:number,ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?number} */
Id;
/** @type {?number} */
DbTechnologiesId;
/** @type {string} */
Description;
/** @type {string} */
CommandText;
/** @type {?number} */
CommandTypesId;
/** @type {?boolean} */
CacheResult;
/** @type {?number} */
CachetimeInSeconds;
/** @type {?number} */
QueryTypesId;
/** @type {?number} */
DbTechnologyTemplatesId;
/** @type {?string} */
LastModifiedDate;
/** @type {?string} */
RowVersionGuid;
/** @type {?boolean} */
IsEnabled;
/** @type {?number} */
ConnectionsId;
/** @type {ResponseStatus} */
ResponseStatus;
}
export class MetaQueriesAdd {
/** @param {{Id?:number,DbTechnologiesId?:number,Description?:string,CommandText?:string,CommandTypesId?:number,CacheResult?:boolean,CachetimeInSeconds?:number,QueryTypesId?:number,DbTechnologyTemplatesId?:number,LastModifiedDate?:string,RowVersionGuid?:string,IsEnabled?:boolean,ConnectionsId?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?number} */
Id;
/** @type {?number} */
DbTechnologiesId;
/** @type {string} */
Description;
/** @type {string} */
CommandText;
/** @type {?number} */
CommandTypesId;
/** @type {?boolean} */
CacheResult;
/** @type {?number} */
CachetimeInSeconds;
/** @type {?number} */
QueryTypesId;
/** @type {?number} */
DbTechnologyTemplatesId;
/** @type {?string} */
LastModifiedDate;
/** @type {?string} */
RowVersionGuid;
/** @type {?boolean} */
IsEnabled;
/** @type {?number} */
ConnectionsId;
}
JavaScript MetaQueriesAdd DTOs
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.
POST /scadmeta/meta_queries 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"}}}