Team Edition REST API (26.0.4-SNAPSHOT)
Download OpenAPI specification:
Complete REST API reference for Team Edition. Use this reference to explore available endpoints, request parameters, and response schemas.
Get subject object permission grants
query Parameters
| subjectId required | string |
| objectType required | string (SMObjectType) Enum: "datasource" "project" |
Responses
Response samples
- 200
Content type
application/json
[- {
- "subjectId": "string",
- "subjectType": "user",
- "objectPermissions": {
- "objectId": "string",
- "permissions": [
- "string"
]
}
}
]Get meta parameters by subject type
query Parameters
| subjectType required | string (SMSubjectType) Enum: "user" "team" |
Responses
Response samples
- 200
Content type
application/json
[- {
- "category": "string",
- "id": "string",
- "displayName": "string",
- "description": "string",
- "required": true,
- "length": "TINY",
- "features": [
- "string"
]
}
]Create team
Request Body schema: application/json
| teamId | string |
| name | string |
| description | string |
| grantor | string |
Responses
Request samples
- Payload
Content type
application/json
{- "teamId": "string",
- "name": "string",
- "description": "string",
- "grantor": "string"
}Response samples
- 200
Content type
application/json
{- "subjectId": "string",
- "secretStorage": true,
- "metaParameters": {
- "property1": "string",
- "property2": "string"
}, - "teamName": "string",
- "description": "string",
- "permissions": [
- "string"
], - "teamId": "string",
- "name": "string"
}Response samples
- 200
Content type
application/json
{- "subjectId": "string",
- "secretStorage": true,
- "metaParameters": {
- "property1": "string",
- "property2": "string"
}, - "teamName": "string",
- "description": "string",
- "permissions": [
- "string"
], - "teamId": "string",
- "name": "string"
}Response samples
- 200
Content type
application/json
[- {
- "subjectId": "string",
- "secretStorage": true,
- "metaParameters": {
- "property1": "string",
- "property2": "string"
}, - "userTeams": [
- "string"
], - "enabled": true,
- "authRole": "string",
- "disableDate": "2019-08-24T14:15:22Z",
- "disabledBy": "string",
- "disableReason": "string",
- "name": "string",
- "userId": "string"
}
]Find users by filter
Request Body schema: application/json
| userIdMask | string |
| enabledState | boolean |
object (DBPPage) |
Responses
Request samples
- Payload
Content type
application/json
{- "userIdMask": "string",
- "enabledState": true,
- "page": {
- "offset": 0,
- "limit": 0
}
}Response samples
- 200
Content type
application/json
[- {
- "subjectId": "string",
- "secretStorage": true,
- "metaParameters": {
- "property1": "string",
- "property2": "string"
}, - "userTeams": [
- "string"
], - "enabled": true,
- "authRole": "string",
- "disableDate": "2019-08-24T14:15:22Z",
- "disabledBy": "string",
- "disableReason": "string",
- "name": "string",
- "userId": "string"
}
]Import users
Request Body schema: application/json
Array of objects (SMUserProvisioning) | |
| authRole | string |
Responses
Request samples
- Payload
Content type
application/json
{- "users": [
- {
- "userId": "string",
- "metaParameters": {
- "property1": "string",
- "property2": "string"
}, - "authRole": "string"
}
], - "authRole": "string"
}Response samples
- 200
Content type
application/json
{- "subjectId": "string",
- "secretStorage": true,
- "metaParameters": {
- "property1": "string",
- "property2": "string"
}, - "userTeams": [
- "string"
], - "enabled": true,
- "authRole": "string",
- "disableDate": "2019-08-24T14:15:22Z",
- "disabledBy": "string",
- "disableReason": "string",
- "name": "string",
- "userId": "string"
}Response samples
- 200
Content type
application/json
[- {
- "subjectId": "string",
- "secretStorage": true,
- "metaParameters": {
- "property1": "string",
- "property2": "string"
}, - "teamName": "string",
- "description": "string",
- "permissions": [
- "string"
], - "teamId": "string",
- "name": "string"
}
]Authenticate session
Request Body schema: application/json
| authProviderId | string |
| authProviderConfigurationId | string |
object | |
| appSessionId | string |
| previousSmSessionId | string |
| forceSessionsLogout | boolean |
object | |
object (SMSessionType) |
Responses
Request samples
- Payload
Content type
application/json
{- "authProviderId": "string",
- "authProviderConfigurationId": "string",
- "userCredentials": {
- "property1": null,
- "property2": null
}, - "appSessionId": "string",
- "previousSmSessionId": "string",
- "forceSessionsLogout": true,
- "sessionParameters": {
- "property1": null,
- "property2": null
}, - "sessionType": {
- "sessionType": "string"
}
}Response samples
- 200
Content type
application/json
{- "authStatus": "SUCCESS",
- "error": "string",
- "authAttemptId": "string",
- "authData": {
- "property1": null,
- "property2": null
}, - "redirectUrl": "string",
- "signOutLink": "string",
- "smAccessToken": "string",
- "smRefreshToken": "string",
- "authRole": "string",
- "authPermissions": {
- "userId": "string",
- "sessionId": "string",
- "permissions": [
- "string"
]
}, - "mainAuth": true,
- "forceSessionsLogout": true,
- "errorCode": "string",
- "appSessionId": "string",
- "signInLink": "string"
}Response samples
- 200
Content type
application/json
[- {
- "id": "string",
- "label": "string",
- "description": "string",
- "icon": "string",
- "credentialProfiles": [
- {
- "id": "string",
- "label": "string",
- "description": "string",
- "credentialParameters": {
- "property1": {
- "id": "string",
- "name": "string",
- "description": "string",
- "hint": "string",
- "category": "string",
- "propertyType": "t_string",
- "required": true,
- "defaultValue": null,
- "desktop": true,
- "hidden": true,
- "length": "TINY",
- "features": [
- "string"
], - "encryption": "none",
- "identifying": true,
- "admin": true,
- "user": true,
- "dataType": null,
- "requiredFeatures": [
- "string"
], - "displayName": "string"
}, - "property2": {
- "id": "string",
- "name": "string",
- "description": "string",
- "hint": "string",
- "category": "string",
- "propertyType": "t_string",
- "required": true,
- "defaultValue": null,
- "desktop": true,
- "hidden": true,
- "length": "TINY",
- "features": [
- "string"
], - "encryption": "none",
- "identifying": true,
- "admin": true,
- "user": true,
- "dataType": null,
- "requiredFeatures": [
- "string"
], - "displayName": "string"
}
}
}
], - "customConfigurations": [
- {
- "id": "string",
- "provider": "string",
- "displayName": "string",
- "disabled": true,
- "iconURL": "string",
- "description": "string",
- "parameters": {
- "property1": null,
- "property2": null
}, - "authConfigurationReference": {
- "authProviderId": "string",
- "authProviderConfigurationId": "string"
}
}
]
}
]Response samples
- 200
Content type
application/json
{- "authStatus": "SUCCESS",
- "error": "string",
- "authAttemptId": "string",
- "authData": {
- "property1": null,
- "property2": null
}, - "redirectUrl": "string",
- "signOutLink": "string",
- "smAccessToken": "string",
- "smRefreshToken": "string",
- "authRole": "string",
- "authPermissions": {
- "userId": "string",
- "sessionId": "string",
- "permissions": [
- "string"
]
}, - "mainAuth": true,
- "forceSessionsLogout": true,
- "errorCode": "string",
- "appSessionId": "string",
- "signInLink": "string"
}Response samples
- 200
Content type
application/json
{- "authStatus": "SUCCESS",
- "error": "string",
- "authAttemptId": "string",
- "authData": {
- "property1": null,
- "property2": null
}, - "redirectUrl": "string",
- "signOutLink": "string",
- "smAccessToken": "string",
- "smRefreshToken": "string",
- "authRole": "string",
- "authPermissions": {
- "userId": "string",
- "sessionId": "string",
- "permissions": [
- "string"
]
}, - "mainAuth": true,
- "forceSessionsLogout": true,
- "errorCode": "string",
- "appSessionId": "string",
- "signInLink": "string"
}(Deprecated) Get auth status from path variable Deprecated
path Parameters
| authId required | string |
Responses
Response samples
- 200
Content type
application/json
{- "authStatus": "SUCCESS",
- "error": "string",
- "authAttemptId": "string",
- "authData": {
- "property1": null,
- "property2": null
}, - "redirectUrl": "string",
- "signOutLink": "string",
- "smAccessToken": "string",
- "smRefreshToken": "string",
- "authRole": "string",
- "authPermissions": {
- "userId": "string",
- "sessionId": "string",
- "permissions": [
- "string"
]
}, - "mainAuth": true,
- "forceSessionsLogout": true,
- "errorCode": "string",
- "appSessionId": "string",
- "signInLink": "string"
}Response samples
- 200
Content type
application/json
{- "enabledServices": [
- "string"
], - "defaultTeamId": "string",
- "applicationWorkspaceId": "string",
- "productConfiguration": {
- "property1": null,
- "property2": null
}, - "integratedDeploymentInfo": {
- "descriptorId": "string",
- "deploymentType": "string",
- "deploymentIdentifier": "string",
- "regionIdentifier": "string",
- "hostIdentifier": "string",
- "accountIdentifier": "string",
- "productDisplayName": "string",
- "appInfoDetails": "string",
- "techSupportLinkParametersTemplate": "string",
- "userIdentityLabel": "string",
- "userIdentityValue": "string",
- "autoLicensed": true,
- "marketplaceProduct": {
- "pluginId": "string",
- "id": "string",
- "displayName": "string",
- "description": "string",
- "icon": {
- "location": "string"
}, - "productType": "cloud",
- "productDeploymentType": "instance",
- "deploymentHostOS": "string",
- "deploymentHostArch": "string",
- "localDataPath": "string",
- "productIdentifier": "string",
- "application": {
- "pluginId": "string",
- "id": "string",
- "label": "string",
- "userIdentityLabel": "string",
- "userIdentityDescription": "string",
- "instance": {
- "autoLicensed": true,
- "descriptorId": "string",
- "deploymentType": "string",
- "deploymentIdentifier": "string",
- "regionIdentifier": "string",
- "hostIdentifier": "string",
- "accountIdentifier": "string",
- "productDisplayName": "string",
- "appInfoDetails": "string",
- "userIdentityLabel": "string",
- "techSupportLinkParametersTemplate": "string",
- "marketplaceProduct": { },
- "userIdentityValue": "string"
}, - "marketplaceProducts": [
- { }
], - "contributorBundle": {
- "location": "string",
- "state": 0,
- "lastModified": 0,
- "version": {
- "major": 0,
- "minor": 0,
- "micro": 0,
- "qualifier": "string"
}, - "headers": {
- "empty": true
}, - "symbolicName": "string",
- "bundleId": 0,
- "registeredServices": [
- {
- "properties": {
- "empty": true
}, - "bundle": { },
- "propertyKeys": [
- "string"
], - "usingBundles": [
- { }
]
}
], - "servicesInUse": [
- {
- "properties": {
- "empty": true
}, - "bundle": { },
- "propertyKeys": [
- "string"
], - "usingBundles": [
- { }
]
}
], - "bundleContext": {
- "bundle": { },
- "bundles": [
- { }
]
}
}
}, - "contributorBundle": {
- "location": "string",
- "state": 0,
- "lastModified": 0,
- "version": {
- "major": 0,
- "minor": 0,
- "micro": 0,
- "qualifier": "string"
}, - "headers": {
- "empty": true
}, - "symbolicName": "string",
- "bundleId": 0,
- "registeredServices": [
- {
- "properties": {
- "empty": true
}, - "bundle": { },
- "propertyKeys": [
- "string"
], - "usingBundles": [
- { }
]
}
], - "servicesInUse": [
- {
- "properties": {
- "empty": true
}, - "bundle": { },
- "propertyKeys": [
- "string"
], - "usingBundles": [
- { }
]
}
], - "bundleContext": {
- "bundle": { },
- "bundles": [
- { }
]
}
}
}
}
}Get service configuration
Returns configuration for a specific service type
query Parameters
| serviceType required | string (MSServiceType) Enum: "CLOUDBEAVER" "DOMAIN_CONTROLLER" "RESOURCE_MANAGER" "QUERY_MANAGER" "EVENT_MANAGER" "TASK_MANAGER" |
Responses
Response samples
- 200
Content type
application/json
{- "property1": null,
- "property2": null
}Save service configuration
Save configuration for a specific service type and notify instances
query Parameters
| serviceType required | string (MSServiceType) Enum: "CLOUDBEAVER" "DOMAIN_CONTROLLER" "RESOURCE_MANAGER" "QUERY_MANAGER" "EVENT_MANAGER" "TASK_MANAGER" |
Request Body schema: application/json
| property name* additional property | any |
Responses
Request samples
- Payload
Content type
application/json
{- "property1": null,
- "property2": null
}Response samples
- 200
Content type
application/json
{- "userPreferences": {
- "property1": null,
- "property2": null
}, - "projectPermissions": [
- {
- "projectId": "string",
- "permissions": [
- "read"
]
}
], - "serviceEndpoints": {
- "property1": "string",
- "property2": "string"
}, - "userMetaParameters": {
- "property1": null,
- "property2": null
}
}Finish security service configuration
Request Body schema: application/json
| user | string |
| password | string |
Array of objects (AuthInfo) |
Responses
Request samples
- Payload
Content type
application/json
{- "user": "string",
- "password": "string",
- "authInfos": [
- {
- "authProvider": "string",
- "userCredentials": {
- "property1": null,
- "property2": null
}
}
]
}Response samples
- 200
Content type
application/json
[- {
- "licenseId": "string",
- "licenseType": "STANDARD",
- "licenseIssueTime": "2019-08-24T14:15:22Z",
- "licenseStartTime": "2019-08-24T14:15:22Z",
- "licenseEndTime": "2019-08-24T14:15:22Z",
- "flags": 0,
- "productId": "string",
- "productVersion": "string",
- "ownerId": "string",
- "ownerCompany": "string",
- "ownerName": "string",
- "ownerEmail": "string",
- "usersNumber": 0,
- "roles": [
- {
- "role": "ADMINISTRATOR",
- "usersNumber": 0
}
], - "features": [
- "string"
]
}
]Request samples
- Payload
Content type
application/json
{- "license": "string"
}Response samples
- 200
Content type
application/json
{- "licenseId": "string",
- "licenseType": "STANDARD",
- "licenseIssueTime": "2019-08-24T14:15:22Z",
- "licenseStartTime": "2019-08-24T14:15:22Z",
- "licenseEndTime": "2019-08-24T14:15:22Z",
- "flags": 0,
- "productId": "string",
- "productVersion": "string",
- "ownerId": "string",
- "ownerCompany": "string",
- "ownerName": "string",
- "ownerEmail": "string",
- "usersNumber": 0,
- "roles": [
- {
- "role": "ADMINISTRATOR",
- "usersNumber": 0
}
], - "features": [
- "string"
]
}Response samples
- 200
Content type
application/json
{- "licenseId": "string",
- "licenseType": "STANDARD",
- "licenseIssueTime": "2019-08-24T14:15:22Z",
- "licenseStartTime": "2019-08-24T14:15:22Z",
- "licenseEndTime": "2019-08-24T14:15:22Z",
- "flags": 0,
- "productId": "string",
- "productVersion": "string",
- "ownerId": "string",
- "ownerCompany": "string",
- "ownerName": "string",
- "ownerEmail": "string",
- "usersNumber": 0,
- "roles": [
- {
- "role": "ADMINISTRATOR",
- "usersNumber": 0
}
], - "features": [
- "string"
]
}Save OAuth client
Request Body schema: application/json
| clientId | string |
| clientSecret | string |
| clientName | string |
| redirectUris | Array of strings |
| scope | string |
Responses
Request samples
- Payload
Content type
application/json
{- "clientId": "string",
- "clientSecret": "string",
- "clientName": "string",
- "redirectUris": [
- "string"
], - "scope": "string"
}Save OAuth authorization request
Request Body schema: application/json
| code | string |
| clientId | string |
| redirectUri | string |
| scope | string |
| state | string |
| smAccessToken | string |
| codeChallenge | string |
| codeChallengeMethod | string |
| createTime | string <date-time> |
Responses
Request samples
- Payload
Content type
application/json
{- "code": "string",
- "clientId": "string",
- "redirectUri": "string",
- "scope": "string",
- "state": "string",
- "smAccessToken": "string",
- "codeChallenge": "string",
- "codeChallengeMethod": "string",
- "createTime": "2019-08-24T14:15:22Z"
}Response samples
- 200
Content type
application/json
{- "code": "string",
- "clientId": "string",
- "redirectUri": "string",
- "scope": "string",
- "state": "string",
- "smAccessToken": "string",
- "codeChallenge": "string",
- "codeChallengeMethod": "string",
- "createTime": "2019-08-24T14:15:22Z"
}Set object permissions
Request Body schema: application/json
| objectIds | Array of strings unique |
| objectType | string (SMObjectType) Enum: "datasource" "project" |
| subjectIds | Array of strings unique |
| permissions | Array of strings unique |
Responses
Request samples
- Payload
Content type
application/json
{- "objectIds": [
- "string"
], - "objectType": "datasource",
- "subjectIds": [
- "string"
], - "permissions": [
- "string"
]
}Get object settings
query Parameters
| projectId required | string |
| objectType required | string (SMObjectType) Enum: "datasource" "project" |
| objectId required | string |
| settingIds required | Array of strings |
Responses
Response samples
- 200
Content type
application/json
[- {
- "objectType": "datasource",
- "objectId": "string",
- "settings": {
- "property1": "string",
- "property2": "string"
}
}
]Set object settings
Request Body schema: application/json
| projectId | string |
| objectId | string |
| objectType | string (SMObjectType) Enum: "datasource" "project" |
object |
Responses
Request samples
- Payload
Content type
application/json
{- "projectId": "string",
- "objectId": "string",
- "objectType": "datasource",
- "settings": {
- "property1": "string",
- "property2": "string"
}
}Get object permission grants
query Parameters
| objectId required | string |
| objectType required | string (SMObjectType) Enum: "datasource" "project" |
Responses
Response samples
- 200
Content type
application/json
[- {
- "subjectId": "string",
- "subjectType": "user",
- "objectPermissions": {
- "objectId": "string",
- "permissions": [
- "string"
]
}
}
]Discover current user secrets
Request Body schema: application/json
object (DBSSecretObject)
Responses
Request samples
- Payload
Content type
application/json
{ }Response samples
- 200
Content type
application/json
[- {
- "subjectId": "string",
- "id": "string",
- "displayName": "string",
- "value": "string",
- "uniqueId": "string"
}
]Set subject secret value
path Parameters
| subjectId required | string |
query Parameters
| projectId | string |
| secretObjectType | string |
| secretObjectId | string |
Request Body schema: application/json
| subjectId | string |
| id | string |
| displayName | string |
| value | string |
Responses
Request samples
- Payload
Content type
application/json
{- "subjectId": "string",
- "id": "string",
- "displayName": "string",
- "value": "string"
}Set private secret value by object
query Parameters
| projectId | string |
| secretObjectType | string |
| secretObjectId | string |
Request Body schema: application/json
| subjectId | string |
| id | string |
| displayName | string |
| value | string |
Responses
Request samples
- Payload
Content type
application/json
{- "subjectId": "string",
- "id": "string",
- "displayName": "string",
- "value": "string"
}Response samples
- 200
Content type
application/json
{- "subjectId": "string",
- "secretStorage": true,
- "metaParameters": {
- "property1": "string",
- "property2": "string"
}, - "userTeams": [
- "string"
], - "enabled": true,
- "authRole": "string",
- "disableDate": "2019-08-24T14:15:22Z",
- "disabledBy": "string",
- "disableReason": "string",
- "name": "string",
- "userId": "string"
}Create API token
Request Body schema: application/json
| tokenName | string |
| period | integer <int32> |
Responses
Request samples
- Payload
Content type
application/json
{- "tokenName": "string",
- "period": 0
}Response samples
- 200
Content type
application/json
{- "tokenName": "string",
- "token": "string",
- "createTime": "2019-08-24",
- "expireTime": "2019-08-24"
}Get conversation history metadata by conversationId
query Parameters
| conversationId | any |
| sessionId required | string |
| engineId required | string |
| from required | string <date-time> |
| to required | string <date-time> |
Responses
Response samples
- 200
Content type
application/json
[- {
- "type": "string",
- "engineId": "string",
- "modelId": "string",
- "systemPromptLength": 0,
- "timeSpent": {
- "seconds": 0,
- "zero": true,
- "nano": 0,
- "negative": true,
- "positive": true,
- "units": [
- {
- "durationEstimated": true,
- "duration": { },
- "timeBased": true,
- "dateBased": true
}
]
}, - "totalInputTokens": 0,
- "cachedTokens": 0,
- "totalOutputTokens": 0,
- "reasoningTokens": 0
}
]Get API call log
Request Body schema: application/json
| from | string <date-time> |
| to | string <date-time> |
| offset | integer <int64> |
| limit | integer <int32> |
Array of objects (QMApiCallLogSortItem) | |
| ipAddress | Array of strings unique |
| userName | Array of strings unique |
| endpoint | Array of strings unique |
| httpMethod | Array of strings unique |
| errorOnly | boolean |
| apiProtocol | Array of strings unique |
Responses
Request samples
- Payload
Content type
application/json
{- "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z",
- "offset": 0,
- "limit": 0,
- "sortItems": [
- {
- "sortBy": "REQUEST_TIME",
- "sortDesc": true
}
], - "ipAddress": [
- "string"
], - "userName": [
- "string"
], - "endpoint": [
- "string"
], - "httpMethod": [
- "string"
], - "errorOnly": true,
- "apiProtocol": [
- "string"
]
}Response samples
- 200
Content type
application/json
[- {
- "id": 0,
- "userName": "string",
- "qmSessionId": "string",
- "apiProtocol": "string",
- "endpoint": "string",
- "httpMethod": "string",
- "errorMessage": "string",
- "serviceType": "string",
- "requestTime": "2019-08-24T14:15:22Z",
- "parameters": {
- "property1": null,
- "property2": null
}, - "ipAddress": "string"
}
]Extend conversation context
query Parameters
| conversationId required | string |
Request Body schema: application/json
Array
| name | string |
| type | string (QMAIContextObjectType) Enum: "DATASOURCE" "DATABASE" "SCHEMA" "TABLE" |
Responses
Request samples
- Payload
Content type
application/json
[- {
- "name": "string",
- "type": "DATASOURCE"
}
]Append messages to conversation
query Parameters
| conversationId required | string |
Request Body schema: application/json
Array
| id | integer <int32> |
| content | string |
| displayMessage | string |
| role | string (QMAIChatRole) Enum: "ASSISTANT" "USER" "FUNCTION" "WARNING" "ERROR" |
| functionCall | string |
| functionResult | string |
| timestamp | string <date-time> |
| deleted | boolean |
Array of objects (QMAIMessageMeta) |
Responses
Request samples
- Payload
Content type
application/json
[- {
- "id": 0,
- "content": "string",
- "displayMessage": "string",
- "role": "ASSISTANT",
- "functionCall": "string",
- "functionResult": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "deleted": true,
- "meta": [
- {
- "type": "string",
- "engineId": "string",
- "modelId": "string",
- "systemPromptLength": 0,
- "timeSpent": {
- "seconds": 0
}, - "totalInputTokens": 0,
- "cachedTokens": 0,
- "totalOutputTokens": 0,
- "reasoningTokens": 0
}
]
}
]Response samples
- 200
Content type
application/json
[- {
- "id": "string",
- "caption": "string",
- "promptGeneratorId": "string",
- "dataSource": {
- "projectId": "string",
- "dataSourceId": "string"
}, - "messages": [
- {
- "id": 0,
- "content": "string",
- "displayMessage": "string",
- "role": "ASSISTANT",
- "functionCall": "string",
- "functionResult": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "deleted": true,
- "meta": [
- {
- "type": "string",
- "engineId": "string",
- "modelId": "string",
- "systemPromptLength": 0,
- "timeSpent": {
- "seconds": 0,
- "zero": true,
- "nano": 0,
- "negative": true,
- "positive": true,
- "units": [
- {
- "durationEstimated": true,
- "duration": { },
- "timeBased": true,
- "dateBased": true
}
]
}, - "totalInputTokens": 0,
- "cachedTokens": 0,
- "totalOutputTokens": 0,
- "reasoningTokens": 0
}
]
}
], - "context": {
- "contextJson": "string",
- "objects": [
- {
- "name": "string",
- "type": "DATASOURCE"
}
]
}, - "nextMessageId": 0,
- "deleted": true
}
]Save AI conversation
query Parameters
| sessionId required | string |
Request Body schema: application/json
| id | string |
| caption | string |
| promptGeneratorId | string |
object (QMAIDataSource) | |
Array of objects (QMAIChatMessage) | |
object (QMAIContext) | |
| nextMessageId | integer <int32> |
| deleted | boolean |
Responses
Request samples
- Payload
Content type
application/json
{- "id": "string",
- "caption": "string",
- "promptGeneratorId": "string",
- "dataSource": {
- "projectId": "string",
- "dataSourceId": "string"
}, - "messages": [
- {
- "id": 0,
- "content": "string",
- "displayMessage": "string",
- "role": "ASSISTANT",
- "functionCall": "string",
- "functionResult": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "deleted": true,
- "meta": [
- {
- "type": "string",
- "engineId": "string",
- "modelId": "string",
- "systemPromptLength": 0,
- "timeSpent": {
- "seconds": 0
}, - "totalInputTokens": 0,
- "cachedTokens": 0,
- "totalOutputTokens": 0,
- "reasoningTokens": 0
}
]
}
], - "context": {
- "contextJson": "string",
- "objects": [
- {
- "name": "string",
- "type": "DATASOURCE"
}
]
}, - "nextMessageId": 0,
- "deleted": true
}Get query history cursor
Request Body schema: application/json
object (QMEventCriteria) | |
| filter | object (QMEventFilter) |
| sessionId | string |
Responses
Request samples
- Payload
Content type
application/json
{- "criteria": {
- "containerId": "string",
- "sessionId": 0,
- "objectTypes": [
- "session"
], - "queryTypes": [
- "USER"
], - "skipEmptyQueries": true,
- "searchString": "string",
- "lastEventId": 0,
- "driverIds": [
- "string"
], - "eventStatuses": [
- "FAILED"
], - "projectIds": [
- "string"
], - "dataSourceIds": [
- "string"
], - "schemas": [
- "string"
], - "catalogs": [
- "string"
], - "sortField": "DATE",
- "desc": true,
- "fetchingSize": 0,
- "dateRange": {
- "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z"
}
}, - "filter": { },
- "sessionId": "string"
}Response samples
- 200
Content type
application/json
{- "totalSize": 0
}Read smart completion history
query Parameters
| sessionId required | string |
| dataSourceId required | string |
| logicalDataSourceName required | string |
| currentCatalog required | string |
| currentSchema required | string |
| maxCount required | integer <int32> |
Responses
Response samples
- 200
Content type
application/json
[- {
- "id": "string",
- "naturalText": "string",
- "completionText": "string",
- "time": "2019-08-24T14:15:22Z"
}
]Dispatch API call events
Request Body schema: application/json
Array
| id | integer <int64> |
| userName | string |
| qmSessionId | string |
| apiProtocol | string |
| endpoint | string |
| httpMethod | string |
| errorMessage | string |
| serviceType | string |
| requestTime | string <date-time> |
object | |
| ipAddress | string |
Responses
Request samples
- Payload
Content type
application/json
[- {
- "id": 0,
- "userName": "string",
- "qmSessionId": "string",
- "apiProtocol": "string",
- "endpoint": "string",
- "httpMethod": "string",
- "errorMessage": "string",
- "serviceType": "string",
- "requestTime": "2019-08-24T14:15:22Z",
- "parameters": {
- "property1": null,
- "property2": null
}, - "ipAddress": "string"
}
]Save data source connect error info
query Parameters
| sessionId required | string |
Request Body schema: application/json
| objectId | integer <int64> |
| openTime | integer <int64> |
| closeTime | integer <int64> |
| projectId | string |
| containerId | string |
| containerName | string |
| driverId | string |
| connectionUrl | string |
| errorType | string |
| errorMessage | string |
Responses
Request samples
- Payload
Content type
application/json
{- "objectId": 0,
- "openTime": 0,
- "closeTime": 0,
- "projectId": "string",
- "containerId": "string",
- "containerName": "string",
- "driverId": "string",
- "connectionUrl": "string",
- "errorType": "string",
- "errorMessage": "string"
}Save QM events
Request Body schema: application/json
Array
object (QMMObject) | |
| action | string (QMEventAction) Enum: "BEGIN" "END" "UPDATE" |
| timestamp | integer <int64> |
| sessionId | string |
Responses
Request samples
- Payload
Content type
application/json
[- {
- "object": {
- "objectId": 0,
- "openTime": 0,
- "closeTime": 0
}, - "action": "BEGIN",
- "timestamp": 0,
- "sessionId": "string"
}
]Find RAG embeddings by object keys
Request Body schema: application/json
Array
object (RAGDataSourceKey) | |
| objectName | string |
Responses
Request samples
- Payload
Content type
application/json
[- {
- "datasourceKey": {
- "projectId": "string",
- "datasourceId": "string"
}, - "objectName": "string"
}
]Response samples
- 200
Content type
application/json
[- {
- "key": {
- "datasourceKey": {
- "projectId": "string",
- "datasourceId": "string"
}, - "objectName": "string"
}, - "checksum": 0,
- "modelName": "string",
- "embedding": [
- 0.1
]
}
]Find relevant RAG records by prefix filter
Request Body schema: application/json
object (RAGObjectKey) | |
| query | Array of numbers <float> [ items <float > ] |
| topK | integer <int32> |
Responses
Request samples
- Payload
Content type
application/json
{- "objectKey": {
- "datasourceKey": {
- "projectId": "string",
- "datasourceId": "string"
}, - "objectName": "string"
}, - "query": [
- 0.1
], - "topK": 0
}Response samples
- 200
Content type
application/json
[- {
- "key": {
- "datasourceKey": {
- "projectId": "string",
- "datasourceId": "string"
}, - "objectName": "string"
}, - "checksum": 0,
- "modelName": "string",
- "embedding": [
- 0.1
]
}
]Find relevant RAG records by filter
Request Body schema: application/json
Array of objects (RAGObjectKey) | |
| query | Array of numbers <float> [ items <float > ] |
| topK | integer <int32> |
Responses
Request samples
- Payload
Content type
application/json
{- "objectKeys": [
- {
- "datasourceKey": {
- "projectId": "string",
- "datasourceId": "string"
}, - "objectName": "string"
}
], - "query": [
- 0.1
], - "topK": 0
}Response samples
- 200
Content type
application/json
[- {
- "key": {
- "datasourceKey": {
- "projectId": "string",
- "datasourceId": "string"
}, - "objectName": "string"
}, - "checksum": 0,
- "modelName": "string",
- "embedding": [
- 0.1
]
}
]Save RAG embeddings
Request Body schema: application/json
Array
object (RAGObjectKey) | |
| checksum | integer <int64> |
| modelName | string |
| embedding | Array of numbers <float> [ items <float > ] |
Responses
Request samples
- Payload
Content type
application/json
[- {
- "key": {
- "datasourceKey": {
- "projectId": "string",
- "datasourceId": "string"
}, - "objectName": "string"
}, - "checksum": 0,
- "modelName": "string",
- "embedding": [
- 0.1
]
}
]Response samples
- 200
Content type
application/json
[- {
- "children": [
- {
- "children": [
- { }
], - "name": "string",
- "folder": true,
- "length": 0,
- "lastModified": 0,
- "changes": [
- {
- "changeId": "string",
- "changeTime": "2019-08-24T14:15:22Z",
- "changeUser": "2019-08-24T14:15:22Z"
}
], - "properties": {
- "property1": null,
- "property2": null
}
}
], - "name": "string",
- "id": "string",
- "description": "string",
- "type": "GLOBAL",
- "createTime": 0,
- "creator": "string",
- "projectPermissions": [
- "string"
], - "resourceTypes": [
- {
- "id": "string",
- "displayName": "string",
- "rootFolder": "string",
- "icon": "string",
- "folderIcon": "string",
- "fileExtensions": [
- "string"
]
}
], - "global": true,
- "displayName": "string",
- "folder": true,
- "shared": true
}
]Response samples
- 200
Content type
application/json
{- "children": [
- {
- "children": [
- { }
], - "name": "string",
- "folder": true,
- "length": 0,
- "lastModified": 0,
- "changes": [
- {
- "changeId": "string",
- "changeTime": "2019-08-24T14:15:22Z",
- "changeUser": "2019-08-24T14:15:22Z"
}
], - "properties": {
- "property1": null,
- "property2": null
}
}
], - "name": "string",
- "id": "string",
- "description": "string",
- "type": "GLOBAL",
- "createTime": 0,
- "creator": "string",
- "projectPermissions": [
- "string"
], - "resourceTypes": [
- {
- "id": "string",
- "displayName": "string",
- "rootFolder": "string",
- "icon": "string",
- "folderIcon": "string",
- "fileExtensions": [
- "string"
]
}
], - "global": true,
- "displayName": "string",
- "folder": true,
- "shared": true
}Get project
query Parameters
| projectId required | string |
| readResources required | boolean |
| readProperties required | boolean |
Responses
Response samples
- 200
Content type
application/json
{- "children": [
- {
- "children": [
- { }
], - "name": "string",
- "folder": true,
- "length": 0,
- "lastModified": 0,
- "changes": [
- {
- "changeId": "string",
- "changeTime": "2019-08-24T14:15:22Z",
- "changeUser": "2019-08-24T14:15:22Z"
}
], - "properties": {
- "property1": null,
- "property2": null
}
}
], - "name": "string",
- "id": "string",
- "description": "string",
- "type": "GLOBAL",
- "createTime": 0,
- "creator": "string",
- "projectPermissions": [
- "string"
], - "resourceTypes": [
- {
- "id": "string",
- "displayName": "string",
- "rootFolder": "string",
- "icon": "string",
- "folderIcon": "string",
- "fileExtensions": [
- "string"
]
}
], - "global": true,
- "displayName": "string",
- "folder": true,
- "shared": true
}Update project
query Parameters
| projectId required | string |
Request Body schema: application/json
| name | string |
| description | string |
Responses
Request samples
- Payload
Content type
application/json
{- "name": "string",
- "description": "string"
}Response samples
- 200
Content type
application/json
{- "children": [
- {
- "children": [
- { }
], - "name": "string",
- "folder": true,
- "length": 0,
- "lastModified": 0,
- "changes": [
- {
- "changeId": "string",
- "changeTime": "2019-08-24T14:15:22Z",
- "changeUser": "2019-08-24T14:15:22Z"
}
], - "properties": {
- "property1": null,
- "property2": null
}
}
], - "name": "string",
- "id": "string",
- "description": "string",
- "type": "GLOBAL",
- "createTime": 0,
- "creator": "string",
- "projectPermissions": [
- "string"
], - "resourceTypes": [
- {
- "id": "string",
- "displayName": "string",
- "rootFolder": "string",
- "icon": "string",
- "folderIcon": "string",
- "fileExtensions": [
- "string"
]
}
], - "global": true,
- "displayName": "string",
- "folder": true,
- "shared": true
}List resources
query Parameters
| projectId required | string |
| folder required | string |
| nameMask required | string |
| readProperties required | boolean |
| readHistory required | boolean |
| recursive required | boolean |
Responses
Response samples
- 200
Content type
application/json
[- {
- "children": [
- { }
], - "name": "string",
- "folder": true,
- "length": 0,
- "lastModified": 0,
- "changes": [
- {
- "changeId": "string",
- "changeTime": "2019-08-24T14:15:22Z",
- "changeUser": "2019-08-24T14:15:22Z"
}
], - "properties": {
- "property1": null,
- "property2": null
}
}
]Response samples
- 200
Content type
application/json
{- "children": [
- { }
], - "name": "string",
- "folder": true,
- "length": 0,
- "lastModified": 0,
- "changes": [
- {
- "changeId": "string",
- "changeTime": "2019-08-24T14:15:22Z",
- "changeUser": "2019-08-24T14:15:22Z"
}
], - "properties": {
- "property1": null,
- "property2": null
}
}Response samples
- 200
Content type
application/json
[- {
- "children": [
- { }
], - "name": "string",
- "folder": true,
- "length": 0,
- "lastModified": 0,
- "changes": [
- {
- "changeId": "string",
- "changeTime": "2019-08-24T14:15:22Z",
- "changeUser": "2019-08-24T14:15:22Z"
}
], - "properties": {
- "property1": null,
- "property2": null
}
}
]Response samples
- 200
Content type
application/json
[- {
- "taskId": "string",
- "runs": [
- {
- "id": "string",
- "startTime": "2019-08-24T14:15:22Z",
- "startUser": "string",
- "startedBy": "string",
- "errorMessage": "string",
- "errorStackTrace": "string",
- "extraMessage": "string",
- "outputFiles": [
- {
- "fileName": "string",
- "fileSize": 0
}
], - "runDuration": 0,
- "runSuccess": true,
- "finished": true
}
]
}
]Response samples
- 200
Content type
application/json
[- {
- "id": "string",
- "startTime": "2019-08-24T14:15:22Z",
- "startUser": "string",
- "startedBy": "string",
- "errorMessage": "string",
- "errorStackTrace": "string",
- "extraMessage": "string",
- "outputFiles": [
- {
- "fileName": "string",
- "fileSize": 0
}
], - "runDuration": 0,
- "runSuccess": true,
- "finished": true
}
]Response samples
- 200
Content type
application/json
{- "id": "string",
- "startTime": "2019-08-24T14:15:22Z",
- "startUser": "string",
- "startedBy": "string",
- "errorMessage": "string",
- "errorStackTrace": "string",
- "extraMessage": "string",
- "outputFiles": [
- {
- "fileName": "string",
- "fileSize": 0
}
], - "runDuration": 0,
- "runSuccess": true,
- "finished": true
}Get specific task run by id
query Parameters
| projectId required | string |
| taskId required | string |
| runId required | string |
Responses
Response samples
- 200
Content type
application/json
{- "id": "string",
- "startTime": "2019-08-24T14:15:22Z",
- "startUser": "string",
- "startedBy": "string",
- "errorMessage": "string",
- "errorStackTrace": "string",
- "extraMessage": "string",
- "outputFiles": [
- {
- "fileName": "string",
- "fileSize": 0
}
], - "runDuration": 0,
- "runSuccess": true,
- "finished": true
}Response samples
- 200
Content type
application/json
[- {
- "taskId": "string",
- "information": {
- "projectId": "string",
- "taskId": "string",
- "nextRunInfo": "string",
- "status": "string"
}, - "configuration": {
- "taskName": "string",
- "taskDescription": "string",
- "frequency": "MINUTELY",
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "recurrence": 0,
- "days": [
- 0
], - "months": [
- 0
], - "repetitionInterval": 0,
- "maxDuration": 0,
- "executionMinute": 0,
- "properties": {
- "property1": null,
- "property2": null
}
}
}
]Schedule task
query Parameters
| projectId required | string |
| taskId required | string |
Request Body schema: application/json
| taskName | string |
| taskDescription | string |
| frequency | string (Frequency) Enum: "MINUTELY" "HOURLY" "DAILY" "WEEKLY" "MONTHLY" "ONE_TIME" "EVENT" |
| startTime | string <date-time> |
| endTime | string <date-time> |
| recurrence | integer <int32> |
| days | Array of integers <int32> [ items <int32 > ] |
| months | Array of integers <int32> [ items <int32 > ] |
| repetitionInterval | integer <int32> |
| maxDuration | integer <int32> |
| executionMinute | integer <int32> |
object |
Responses
Request samples
- Payload
Content type
application/json
{- "taskName": "string",
- "taskDescription": "string",
- "frequency": "MINUTELY",
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "recurrence": 0,
- "days": [
- 0
], - "months": [
- 0
], - "repetitionInterval": 0,
- "maxDuration": 0,
- "executionMinute": 0,
- "properties": {
- "property1": null,
- "property2": null
}
}