Custom Sql Query Controller

get
Authorizations
ins_access_tokenstringRequired

Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the ins_refresh_token cookie at the /refresh endpoint.

X-SpacestringRequired

Required active space header

Path parameters
customQueryIdstringRequired
Responses
200

OK

*/*
get
/api/custom-query/sql/{customQueryId}
GET /api/custom-query/sql/{customQueryId} HTTP/1.1
Host: inscada.cloud
X-Space: YOUR_API_KEY
Accept: */*
{
  "creationDate": "2025-11-22T23:40:05.952Z",
  "lastModifiedBy": "text",
  "createdBy": "text",
  "lastModifiedDate": "2025-11-22T23:40:05.952Z",
  "id": "text",
  "projectId": "text",
  "queryStr": "text",
  "dsc": "text",
  "name": "text"
}
put
Authorizations
ins_access_tokenstringRequired

Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the ins_refresh_token cookie at the /refresh endpoint.

X-SpacestringRequired

Required active space header

Path parameters
customQueryIdstringRequired
Body
creationDatestring · date-timeRead-onlyOptional
lastModifiedBystringRead-onlyOptional
createdBystringRead-onlyOptional
lastModifiedDatestring · date-timeRead-onlyOptional
idstringOptional
projectIdstringOptional
queryStrstringRequired
dscstring · max: 255Optional
namestring · max: 100Required
Responses
put
/api/custom-query/sql/{customQueryId}
PUT /api/custom-query/sql/{customQueryId} HTTP/1.1
Host: inscada.cloud
X-Space: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 77

{
  "id": "text",
  "projectId": "text",
  "queryStr": "text",
  "dsc": "text",
  "name": "text"
}

No content

delete
Authorizations
ins_access_tokenstringRequired

Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the ins_refresh_token cookie at the /refresh endpoint.

X-SpacestringRequired

Required active space header

Path parameters
customQueryIdstringRequired
Responses
delete
/api/custom-query/sql/{customQueryId}
DELETE /api/custom-query/sql/{customQueryId} HTTP/1.1
Host: inscada.cloud
X-Space: YOUR_API_KEY
Accept: */*

No content

get
Authorizations
ins_access_tokenstringRequired

Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the ins_refresh_token cookie at the /refresh endpoint.

X-SpacestringRequired

Required active space header

Query parameters
projectIdstringOptional
Responses
200

OK

*/*
get
/api/custom-query/sql
GET /api/custom-query/sql HTTP/1.1
Host: inscada.cloud
X-Space: YOUR_API_KEY
Accept: */*
[
  {
    "creationDate": "2025-11-22T23:40:05.952Z",
    "lastModifiedBy": "text",
    "createdBy": "text",
    "lastModifiedDate": "2025-11-22T23:40:05.952Z",
    "id": "text",
    "projectId": "text",
    "queryStr": "text",
    "dsc": "text",
    "name": "text"
  }
]
post
Authorizations
ins_access_tokenstringRequired

Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the ins_refresh_token cookie at the /refresh endpoint.

X-SpacestringRequired

Required active space header

Body
creationDatestring · date-timeRead-onlyOptional
lastModifiedBystringRead-onlyOptional
createdBystringRead-onlyOptional
lastModifiedDatestring · date-timeRead-onlyOptional
idstringOptional
projectIdstringOptional
queryStrstringRequired
dscstring · max: 255Optional
namestring · max: 100Required
Responses
200

OK

*/*
post
/api/custom-query/sql
POST /api/custom-query/sql HTTP/1.1
Host: inscada.cloud
X-Space: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 77

{
  "id": "text",
  "projectId": "text",
  "queryStr": "text",
  "dsc": "text",
  "name": "text"
}
{
  "creationDate": "2025-11-22T23:40:05.952Z",
  "lastModifiedBy": "text",
  "createdBy": "text",
  "lastModifiedDate": "2025-11-22T23:40:05.952Z",
  "id": "text",
  "projectId": "text",
  "queryStr": "text",
  "dsc": "text",
  "name": "text"
}
post
Authorizations
ins_access_tokenstringRequired

Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the ins_refresh_token cookie at the /refresh endpoint.

X-SpacestringRequired

Required active space header

Query parameters
Body
filestring · binaryRequired
Responses
200

OK

*/*
Responseobject
post
/api/custom-query/sql/import
POST /api/custom-query/sql/import HTTP/1.1
Host: inscada.cloud
X-Space: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 17

{
  "file": "binary"
}
{}
get
Authorizations
ins_access_tokenstringRequired

Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the ins_refresh_token cookie at the /refresh endpoint.

X-SpacestringRequired

Required active space header

Query parameters
projectIdstringOptional
includeIdsbooleanOptionalDefault: false
Responses
200

OK

*/*
Responseobject
get
/api/custom-query/sql/export
GET /api/custom-query/sql/export HTTP/1.1
Host: inscada.cloud
X-Space: YOUR_API_KEY
Accept: */*
{}
delete
Authorizations
ins_access_tokenstringRequired

Access token provided as a cookie named 'ins_access_token'. This token is obtained after successful login and is valid for x minutes. It can be refreshed using the ins_refresh_token cookie at the /refresh endpoint.

X-SpacestringRequired

Required active space header

Query parameters
customQueryIdsstring[]Required
Responses
delete
/api/custom-query/sql/multi/by-ids
DELETE /api/custom-query/sql/multi/by-ids?customQueryIds=text HTTP/1.1
Host: inscada.cloud
X-Space: YOUR_API_KEY
Accept: */*

No content

Last updated