REST API documentation version v1
Base URL: https://cloud.kaaiot.com/api/v1/re
Rules
Operations on rules.
Creates a new rule.
Retrieves rules.
post /rules
Creates a new rule.
- tenant:rule:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Rule name.
- description: (string)
Rule description.
- expression: required(string)
Rule expression.
- state: (one of ENABLED, DISABLED - default: ENABLED)
Enables or disables the rule.
- uiMetadata: (string)
UI metadata.
Examples:
endpoint metadata:
{
"name": "Low battery",
"description": "Checks if sensor has low battery",
"expression": "return ctx.endpoint.getMetadata().battery.status == 'low'",
"state": "ENABLED",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
metadata updated trigger:
{
"name": "Comfort temperature",
"description": "Checks if temperature is 20",
"expression": "return ctx.trigger.endpointMetadataUpdated.updated.temperature.newValue == '20';",
"state": "ENABLED",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
time series updated trigger:
{
"name": "Comfort temperature",
"description": "Checks if temperature more than 20",
"expression": "return ctx.trigger.endpointTimeSeriesUpdated['auto~co2'][0].values.value > 20;",
"state": "ENABLED",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 201
Rule is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/rules/{ruleId}
Example:
https://cloud.kaaiot.com/re/api/v1/rules/47e17fc5-060c-4923-b315-d17f6a1bf8d6
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /rules
Retrieves rules.
- rule:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- name: (string)
Name. Supports partial match.
Example:
myName
- description: (string)
Description. Supports partial match.
Example:
myDescription
- sort: (one of createdAt, updatedAt - default: createdAt)
Field to sort by.
Example:
updatedAt
- sortOrder: (one of asc, desc - default: desc)
Sort direction.
Example:
asc
- include: (ATTACHED_TO_ALERT_SETTING)
Criteria to include records by.
- ATTACHED_TO_ALERT_SETTING - include records attached to alert setting(s).
Example:
ATTACHED_TO_ALERT_SETTING
HTTP status code 200
Rules are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of all-types.RuleResponse)
Items: RuleResponse
- id: required(string)
Rule ID.
- name: required(string)
Rule name.
- description: (string)
Rule description.
- expression: required(string)
Rule expression.
- state: (one of ENABLED, DISABLED - default: ENABLED)
enables or disables the rule.
- uiMetadata: (string)
UI metadata.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the rule was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the rule was last updated.
Example:
2023-06-30T12:30:54.540Z
- id: required(string)
Example:
{
"content": [
{
"id": "47e17fc5-060c-4923-b315-d17f6a1bf8d6",
"name": "Low battery",
"description": "Checks if sensor has low battery",
"expression": "return ctx.endpoint.getMetadata().battery.status == 'low'",
"state": "ENABLED",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
],
"totalElements": 1
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Retrieves a specific rule.
Updates a rule.
Deletes rule.
get /rules/{ruleId}
Retrieves a specific rule.
- rule:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- ruleId: required(string)
Rule ID
HTTP status code 200
Rule is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
Rule ID.
- name: required(string)
Rule name.
- description: (string)
Rule description.
- expression: required(string)
Rule expression.
- state: (one of ENABLED, DISABLED - default: ENABLED)
enables or disables the rule.
- uiMetadata: (string)
UI metadata.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the rule was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the rule was last updated.
Example:
2023-06-30T12:30:54.540Z
Example:
{
"id": "47e17fc5-060c-4923-b315-d17f6a1bf8d6",
"name": "Low battery",
"description": "Checks if sensor has low battery",
"expression": "return ctx.endpoint.getMetadata().battery.status == 'low'",
"state": "ENABLED",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /rules/{ruleId}
Updates a rule.
- rule:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- ruleId: required(string)
Rule ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Rule name.
- description: (string)
Rule description.
- expression: required(string)
Rule expression.
- state: (one of ENABLED, DISABLED - default: ENABLED)
Enables or disables the rule.
- uiMetadata: (string)
UI metadata.
Example:
{
"name": "Low battery",
"description": "Checks if sensor has low battery",
"expression": "return ctx.endpoint.getMetadata().battery.status == 'low'",
"state": "ENABLED",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 204
Rule is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /rules/{ruleId}
Deletes rule.
- rule:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- ruleId: required(string)
Rule ID
HTTP status code 204
Rule is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Executes the rule.
post /rules/{ruleId}/execute
Executes the rule.
- rule:execute
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- ruleId: required(string)
Rule ID
Body
Media type: application/json
Type: any
Example:
{
"myKey": "myValue"
}
HTTP status code 200
Rule is successfully executed.
Body
Media type: application/json
Type: object
Properties- traces: required(array of trace-types.TraceResponse)
Traces.
Items: TraceResponse
- id: required(string)
Trace record ID. Unique for each trace record.
- traceId: required(string)
Trace ID. Common for the whole rule execution chain including attached to this rule actions and rule itself.
- entityType: required(one of RULE, COMMAND_INVOCATION_ACTION, DATA_SAMPLE_ACTION, METADATA_UPDATE_ACTION, RULE_EXECUTION_ACTION, WEBHOOK_ACTION, RULE_ACTION, TIME_SERIES_ACTION, ALERT_ACTIVATION_ACTION, ALERT_RESOLUTION_ACTION, SEND_EMAIL_ACTION)
Entity type that produced the trace.
- entityId: required(string)
Entity ID that produced the trace.
- outcome: required(one of FAILURE, SUCCESS)
Execution outcome.
- stage: (string)
Stage on which trace was taken in case outcome equal to FAILURE.
- reason: (string)
Outcome reason.
- metadata: (object)
Additional metadata.
- id: required(string)
- returnedValue: required(string)
Returned from rule value.
Example:
{
"returnedValue": "\"Hello from rule\"",
"traces": [
{
"id": "aa54a074-6c87-46cf-a4a1-fbec44dd4ac8",
"traceId": "da7c72c6-d914-4ab8-ac45-e7f6fb6a2c15",
"entityType": "COMMAND_INVOCATION_ACTION",
"entityId": "74",
"outcome": "FAILURE",
"stage": "ENDPOINT_ID_EXPRESSION_EVALUATION",
"reason": "TypeError: Cannot read property 'getChildren' of undefined",
"metadata": {
"endpointIdExpression": "return ctx.endpoin.getChildren().length"
}
},
{
"id": "ea279e04-3f0d-49f5-a3c5-fc46acfbd675",
"traceId": "da7c72c6-d914-4ab8-ac45-e7f6fb6a2c15",
"entityType": "DATA_SAMPLE_ACTION",
"entityId": "91",
"outcome": "SUCCESS"
}
]
}
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Retrieves actions attached to rule.
get /rules/{ruleId}/actions
Retrieves actions attached to rule.
- rule:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- ruleId: required(string)
Rule ID
HTTP status code 200
Actions attached to the rule are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- positiveActions: required(array of all-types.AttachedAction)
Items: AttachedAction
- id: required(string)
Action ID.
- name: required(string)
Action name.
- type: required(string)
Action type.
- id: required(string)
- negativeActions: required(array of all-types.AttachedAction)
Items: AttachedAction
- id: required(string)
Action ID.
- name: required(string)
Action name.
- type: required(string)
Action type.
- id: required(string)
Example:
{
"positiveActions": [
{
"id": "1",
"name": "Switch light",
"type": "command-invocation"
}
],
"negativeActions": [
{
"id": "2",
"name": "Turn on water pump",
"type": "command-invocation"
}
]
}
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Retrieves triggers attached to rule.
get /rules/{ruleId}/triggers
Retrieves triggers attached to rule.
- rule:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- ruleId: required(string)
Rule ID
HTTP status code 200
Triggers attached to the rule are successfully retrieved.
Body
Media type: application/json
Type: array of object
Items: AttachedTrigger
- id: required(string)
Trigger ID.
- name: required(string)
Trigger name.
- type: required(string)
Trigger type.
Example:
[
{
"id": "1",
"name": "Simple trigger",
"type": "cron"
}
]
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Updates attached command invocation actions.
put /rules/{ruleId}/action-types/command-invocation/actions
Updates attached command invocation actions.
- rule:update
- command-invocation-action:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- ruleId: required(string)
Rule ID
Body
Media type: application/json
Type: object
Properties- positiveActions: required(array of string)
- negativeActions: required(array of string)
Example:
{
"positiveActions": ["1", "2"],
"negativeActions": ["3", "4"]
}
HTTP status code 204
Attached to rule command invocation actions are successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Updates attached metadata update actions.
put /rules/{ruleId}/action-types/metadata-update/actions
Updates attached metadata update actions.
- rule:update
- metadata-update-action:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- ruleId: required(string)
Rule ID
Body
Media type: application/json
Type: object
Properties- positiveActions: required(array of string)
- negativeActions: required(array of string)
Example:
{
"positiveActions": ["1", "2"],
"negativeActions": ["3", "4"]
}
HTTP status code 204
Attached to rule metadata update actions are successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Updates attached webhook actions.
put /rules/{ruleId}/action-types/webhook/actions
Updates attached webhook actions.
- rule:update
- webhook-action:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- ruleId: required(string)
Rule ID
Body
Media type: application/json
Type: object
Properties- positiveActions: required(array of string)
- negativeActions: required(array of string)
Example:
{
"positiveActions": ["1", "2"],
"negativeActions": ["3", "4"]
}
HTTP status code 204
Attached to rule webhook actions are successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Updates attached rule execution actions.
put /rules/{ruleId}/action-types/rule-execution/actions
Updates attached rule execution actions.
- rule:update
- rule-execution-action:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- ruleId: required(string)
Rule ID
Body
Media type: application/json
Type: object
Properties- positiveActions: required(array of string)
- negativeActions: required(array of string)
Example:
{
"positiveActions": ["1", "2"],
"negativeActions": ["3", "4"]
}
HTTP status code 204
Attached rule execution actions are successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Updates attached data sample actions.
put /rules/{ruleId}/action-types/data-sample/actions
Updates attached data sample actions.
- rule:update
- data-sample-action:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- ruleId: required(string)
Rule ID
Body
Media type: application/json
Type: object
Properties- positiveActions: required(array of string)
- negativeActions: required(array of string)
Example:
{
"positiveActions": ["1", "2"],
"negativeActions": ["3", "4"]
}
HTTP status code 204
Attached data sample actions are successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Updates attached time series actions.
put /rules/{ruleId}/action-types/time-series/actions
Updates attached time series actions.
- rule:update
- time-series-action:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- ruleId: required(string)
Rule ID
Body
Media type: application/json
Type: object
Properties- positiveActions: required(array of string)
- negativeActions: required(array of string)
Example:
{
"positiveActions": ["1", "2"],
"negativeActions": ["3", "4"]
}
HTTP status code 204
Attached time series event actions are successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Updates attached alert activation actions.
put /rules/{ruleId}/action-types/alert-activation/actions
Updates attached alert activation actions.
- rule:update
- alert-activation-action:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- ruleId: required(string)
Rule ID
Body
Media type: application/json
Type: object
Properties- positiveActions: required(array of string)
- negativeActions: required(array of string)
Example:
{
"positiveActions": ["1", "2"],
"negativeActions": ["3", "4"]
}
HTTP status code 204
Attached alert activation actions are successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Updates attached alert resolution actions.
put /rules/{ruleId}/action-types/alert-resolution/actions
Updates attached alert resolution actions.
- rule:update
- alert-resolution-action:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- ruleId: required(string)
Rule ID
Body
Media type: application/json
Type: object
Properties- positiveActions: required(array of string)
- negativeActions: required(array of string)
Example:
{
"positiveActions": ["1", "2"],
"negativeActions": ["3", "4"]
}
HTTP status code 204
Attached alert resolution actions are successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Updates attached 'endpoint metadata updated' triggers.
put /rules/{ruleId}/trigger-types/endpoint-metadata-updated/triggers
Updates attached 'endpoint metadata updated' triggers.
- rule:update
- endpoint-metadata-updated-trigger:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- ruleId: required(string)
Rule ID
Body
Media type: application/json
Type: array of string
Example:
[
"1"
]
HTTP status code 204
Attached 'endpoint metadata updated' triggers are successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Updates attached 'cron' triggers.
put /rules/{ruleId}/trigger-types/cron/triggers
Updates attached 'cron' triggers.
- rule:update
- cron-trigger:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- ruleId: required(string)
Rule ID
Body
Media type: application/json
Type: array of string
Example:
[
"1"
]
HTTP status code 204
Attached 'cron' triggers are successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Updates attached 'endpoint time series updated' triggers.
put /rules/{ruleId}/trigger-types/endpoint-time-series-updated/triggers
Updates attached 'endpoint time series updated' triggers.
- rule:update
- endpoint-time-series-updated-trigger:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- ruleId: required(string)
Rule ID
Body
Media type: application/json
Type: array of string
Example:
[
"1"
]
HTTP status code 204
Attached 'endpoint time series updated' triggers are successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Actions
Operations on actions.
Creates a new action.
Retrieves actions.
post /action-types/command-invocation/actions
Creates a new action.
- tenant:command-invocation-action:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- endpointIdExpression: required(string)
Endpoint ID expression.
- commandType: required(string)
Command type.
- commandPayloadExpression: (string)
Command payload expression.
Example:
{
"name": "Switch light",
"description": "Turns on/off light depending on the endpoint state",
"endpointIdExpression": "return '65efe88c-6875-4aa6-a064-8c65f9f40514'",
"commandType": "SWITCH_LIGHT",
"commandPayloadExpression": "return {switch: ctx.endpoint.getMetadata().state === 'opened' ? 'on' : 'off'};",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 201
Action is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/action-types/command-invocation/actions/{actionId}
Example:
https://cloud.kaaiot.com/re/api/v1/action-types/command-invocation/actions/10
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /action-types/command-invocation/actions
Retrieves actions.
- command-invocation-action:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- name: (string)
Name. Supports partial match.
Example:
myName
- description: (string)
Description. Supports partial match.
Example:
myDescription
- sort: (one of createdAt, updatedAt - default: createdAt)
Field to sort by.
Example:
updatedAt
- sortOrder: (one of asc, desc - default: desc)
Sort direction.
Example:
asc
- include: (ATTACHED_TO_ALERT_SETTING)
Criteria to include records by.
- ATTACHED_TO_ALERT_SETTING - include records attached to alert setting(s).
Example:
ATTACHED_TO_ALERT_SETTING
HTTP status code 200
Actions are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of all-types.CommandActionResponse)
Items: CommandActionResponse
- id: required(string)
Action ID.
- name: required(string)
Action name.
- description: (string)
Action description.
- endpointIdExpression: required(string)
Endpoint ID expression.
- commandType: required(string)
Command type.
- commandPayloadExpression: (string)
Command payload expression.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the rule was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the rule was last updated.
Example:
2023-06-30T12:30:54.540Z
- id: required(string)
Example:
{
"content": [
{
"id": "1",
"name": "Switch light",
"description": "Turns on/off light depending on the endpoint state",
"endpointIdExpression": "return '65efe88c-6875-4aa6-a064-8c65f9f40514'",
"commandType": "SWITCH_LIGHT",
"commandPayloadExpression": "return {switch: ctx.endpoint.getMetadata().state === 'opened' ? 'on' : 'off'}",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
},
{
"id": "2",
"name": "Switch heater",
"description": "Turns on/off parent endpoint heater depending on the child endpoint state",
"endpointIdExpression": "return ctx.endpoint.getParent().getId()",
"commandType": "SWITCH_HEATER",
"commandPayloadExpression": "return {switch: ctx.endpoint.getMetadata().state === 'opened' ? 'on' : 'off'}",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
],
"totalElements": 2
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Retrieves action.
Updates action.
Deletes action.
get /action-types/command-invocation/actions/{actionId}
Retrieves action.
- command-invocation-action:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 200
Action is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
Action ID.
- name: required(string)
Action name.
- description: (string)
Action description.
- endpointIdExpression: required(string)
Endpoint ID expression.
- commandType: required(string)
Command type.
- commandPayloadExpression: (string)
Command payload expression.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the rule was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the rule was last updated.
Example:
2023-06-30T12:30:54.540Z
Example:
{
"id": "1",
"name": "Switch light",
"description": "Turns on/off light depending on the endpoint state",
"endpointIdExpression": "return '65efe88c-6875-4aa6-a064-8c65f9f40514'",
"commandType": "SWITCH_LIGHT",
"commandPayloadExpression": "return {switch: ctx.endpoint.getMetadata().state === 'opened' ? 'on' : 'off'}",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /action-types/command-invocation/actions/{actionId}
Updates action.
- command-invocation-action:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- endpointIdExpression: required(string)
Endpoint ID expression.
- commandType: required(string)
Command type.
- commandPayloadExpression: (string)
Command payload expression.
Example:
{
"name": "Switch light",
"description": "Turns on/off light depending on the endpoint state",
"endpointIdExpression": "return '65efe88c-6875-4aa6-a064-8c65f9f40514'",
"commandType": "SWITCH_LIGHT",
"commandPayloadExpression": "return {switch: ctx.endpoint.getMetadata().state === 'opened' ? 'on' : 'off'};",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 204
Action is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /action-types/command-invocation/actions/{actionId}
Deletes action.
- command-invocation-action:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 204
Action is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Creates a new metadata update action.
Retrieves actions.
post /action-types/metadata-update/actions
Creates a new metadata update action.
- tenant:metadata-update-action:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- endpointIdExpression: required(string)
Endpoint ID expression.
- metadataKeyExpression: required(string)
Metadata key expression to update key.
- metadataValueExpression: required(string)
Metadata value expression.
Example:
{
"name": "Lighting state",
"description": "Updates the parent endpoint lighting state depending on the child endpoint state",
"endpointIdExpression": "return ctx.endpoint.getParent().getId()",
"metadataKeyExpression": "return ctx.endpoint.getMetadata().device_type + '.status'",
"metadataValueExpression": "return ctx.endpoint.getMetadata().state == 'opened' ? 'on' : 'off'",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 201
Action is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/action-types/metadata-update/actions/{actionId}
Example:
https://cloud.kaaiot.com/re/api/v1/action-types/metadata-update/actions/18
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /action-types/metadata-update/actions
Retrieves actions.
- metadata-update-action:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- name: (string)
Name. Supports partial match.
Example:
myName
- description: (string)
Description. Supports partial match.
Example:
myDescription
- sort: (one of createdAt, updatedAt - default: createdAt)
Field to sort by.
Example:
updatedAt
- sortOrder: (one of asc, desc - default: desc)
Sort direction.
Example:
asc
- include: (ATTACHED_TO_ALERT_SETTING)
Criteria to include records by.
- ATTACHED_TO_ALERT_SETTING - include records attached to alert setting(s).
Example:
ATTACHED_TO_ALERT_SETTING
HTTP status code 200
Actions are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of all-types.MetadataUpdateActionResponse)
Items: MetadataUpdateActionResponse
- id: required(string)
Action ID.
- name: required(string)
Action name.
- description: (string)
Action description.
- endpointIdExpression: required(string)
Endpoint ID expression.
- metadataKeyExpression: required(string)
Metadata key expression to update key
- metadataValueExpression: required(string)
Metadata value expression.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was last updated.
Example:
2023-06-30T12:30:54.540Z
- id: required(string)
Example:
{
"content": [
{
"id": "2",
"name": "Lighting state",
"description": "Updates the parent endpoint lighting state depending on the child endpoint state",
"endpointIdExpression": "return ctx.endpoint.getParent().getId()",
"metadataKeyExpression": "return ctx.endpoint.getMetadata().device_type + '.status'",
"metadataValueExpression": "return ctx.endpoint.getMetadata().state == 'opened' ? 'on' : 'off'",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
],
"totalElements": 1
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Retrieves action.
Updates action.
Deletes action.
get /action-types/metadata-update/actions/{actionId}
Retrieves action.
- metadata-update-action:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 200
Action is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
Action ID.
- name: required(string)
Action name.
- description: (string)
Action description.
- endpointIdExpression: required(string)
Endpoint ID expression.
- metadataKeyExpression: required(string)
Metadata key expression to update key
- metadataValueExpression: required(string)
Metadata value expression.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was last updated.
Example:
2023-06-30T12:30:54.540Z
Example:
{
"id": "2",
"name": "Lighting state",
"description": "Updates the parent endpoint lighting state depending on the child endpoint state",
"endpointIdExpression": "return ctx.endpoint.getParent().getId()",
"metadataKeyExpression": "return ctx.endpoint.getMetadata().device_type + '.status'",
"metadataValueExpression": "return ctx.endpoint.getMetadata().state == 'opened' ? 'on' : 'off'",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /action-types/metadata-update/actions/{actionId}
Updates action.
- metadata-update-action:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- endpointIdExpression: required(string)
Endpoint ID expression.
- metadataKeyExpression: required(string)
Metadata key expression to update key.
- metadataValueExpression: required(string)
Metadata value expression.
Example:
{
"name": "Lighting state",
"description": "Updates the parent endpoint lighting state depending on the child endpoint state",
"endpointIdExpression": "return ctx.endpoint.getParent().getId()",
"metadataKeyExpression": "return ctx.endpoint.getMetadata().device_type + '.status'",
"metadataValueExpression": "return ctx.endpoint.getMetadata().state == 'opened' ? 'on' : 'off'",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 204
Action is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /action-types/metadata-update/actions/{actionId}
Deletes action.
- metadata-update-action:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 204
Action is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Creates a new action.
Retrieves actions.
post /action-types/webhook/actions
Creates a new action.
- tenant:webhook-action:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- webhookUrl: required(string)
Webhook URL.
- headersExpression: (string)
Wehbook HTTP headers expression.
- webhookPayloadExpression: (string)
Webhook payload expression.
Example:
{
"name": "Water leakage email alert",
"description": "Sends email alert with the endpoint water leakage state",
"webhookUrl": "https://cloud.kaaiot.com/aa/api/v1/applications/cdhn26a09eau0udkrcj2/actions/email-notification/32/webhooks/cf8qn5ooq9sqgvjlajod",
"headersExpression": "return {'X-Token':'mySecret'};",
"webhookPayloadExpression": "return 'Water leakage state is ' + ctx.endpoint.getMetadata().state.waterLeakage",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 201
Action is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/action-types/webhook/actions/{actionId}
Example:
https://cloud.kaaiot.com/re/api/v1/action-types/webhook/actions/37
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /action-types/webhook/actions
Retrieves actions.
- webhook-action:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- name: (string)
Name. Supports partial match.
Example:
myName
- description: (string)
Description. Supports partial match.
Example:
myDescription
- sort: (one of createdAt, updatedAt - default: createdAt)
Field to sort by.
Example:
updatedAt
- sortOrder: (one of asc, desc - default: desc)
Sort direction.
Example:
asc
- include: (ATTACHED_TO_ALERT_SETTING)
Criteria to include records by.
- ATTACHED_TO_ALERT_SETTING - include records attached to alert setting(s).
Example:
ATTACHED_TO_ALERT_SETTING
HTTP status code 200
Actions are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of webhook-action-types.WebhookActionResponse)
Items: WebhookActionResponse
- name: required(string)
Action name.
- description: (string)
Action description.
- webhookUrl: required(string)
Webhook URL.
- headersExpression: (string)
Wehbook HTTP headers expression.
- webhookPayloadExpression: (string)
Webhook payload expression.
- id: required(string)
Action ID.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was last updated.
Example:
2023-06-30T12:30:54.540Z
- name: required(string)
Example:
{
"content": [
{
"id": "4",
"name": "Water leakage email alert",
"description": "Sends email alert with the endpoint water leakage state",
"webhookUrl": "https://cloud.kaaiot.com/aa/api/v1/applications/cdhn26a09eau0udkrcj2/actions/email-notification/32/webhooks/cf8qn5ooq9sqgvjlajod",
"headersExpression": "return {'X-Token':'mySecret'};",
"webhookPayloadExpression": "return 'Water leakage state is ' + ctx.endpoint.getMetadata().state.waterLeakage",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
],
"totalElements": 1
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Retrieves action.
Updates action.
Deletes action.
get /action-types/webhook/actions/{actionId}
Retrieves action.
- webhook-action:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 200
Action is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- webhookUrl: required(string)
Webhook URL.
- headersExpression: (string)
Wehbook HTTP headers expression.
- webhookPayloadExpression: (string)
Webhook payload expression.
- id: required(string)
Action ID.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was last updated.
Example:
2023-06-30T12:30:54.540Z
Example:
{
"id": "4",
"name": "Water leakage email alert",
"description": "Sends email alert with the endpoint water leakage state",
"webhookUrl": "https://cloud.kaaiot.com/aa/api/v1/applications/cdhn26a09eau0udkrcj2/actions/email-notification/32/webhooks/cf8qn5ooq9sqgvjlajod",
"headersExpression": "return {'X-Token':'mySecret'};",
"webhookPayloadExpression": "return 'Water leakage state is ' + ctx.endpoint.getMetadata().state.waterLeakage",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /action-types/webhook/actions/{actionId}
Updates action.
- webhook-action:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- webhookUrl: required(string)
Webhook URL.
- headersExpression: (string)
Wehbook HTTP headers expression.
- webhookPayloadExpression: (string)
Webhook payload expression.
Example:
{
"name": "Water leakage email alert",
"description": "Sends email alert with the endpoint water leakage state",
"webhookUrl": "https://cloud.kaaiot.com/aa/api/v1/applications/cdhn26a09eau0udkrcj2/actions/email-notification/32/webhooks/cf8qn5ooq9sqgvjlajod",
"headersExpression": "return {'X-Token':'mySecret'};",
"webhookPayloadExpression": "return 'Water leakage state is ' + ctx.endpoint.getMetadata().state.waterLeakage",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 204
Action is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /action-types/webhook/actions/{actionId}
Deletes action.
- webhook-action:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 204
Action is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Creates a new action.
Retrieves actions.
post /action-types/rule-execution/actions
Creates a new action.
- tenant:rule-execution-action:create
- rule:execute
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- ruleId: required(string)
The ID of the rule to execute.
Example:
{
"name": "Check lighting state",
"description": "Runs the rule that checks lighting state",
"ruleId": "f6fde168-bbff-4383-9912-b9e6c51b7a88",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 201
Action is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/action-types/rule-execution/actions/{actionId}
Example:
https://cloud.kaaiot.com/re/api/v1/action-types/rule-execution/actions/68
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /action-types/rule-execution/actions
Retrieves actions.
- rule-execution-action:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- ruleId: (string)
Rule ID.
Example:
47e17fc5-060c-4923-b315-d17f6a1bf8d6
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- sort: (one of createdAt, updatedAt - default: createdAt)
Field to sort by.
Example:
updatedAt
- sortOrder: (one of asc, desc - default: desc)
Sort direction.
Example:
asc
- name: (string)
Name. Supports partial match.
Example:
myName
- description: (string)
Description. Supports partial match.
Example:
myDescription
- include: (ATTACHED_TO_ALERT_SETTING)
Criteria to include records by.
- ATTACHED_TO_ALERT_SETTING - include records attached to alert setting(s).
Example:
ATTACHED_TO_ALERT_SETTING
HTTP status code 200
Actions are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of all-types.RuleExecutionActionResponse)
Items: RuleExecutionActionResponse
- id: required(string)
Action ID.
- name: required(string)
Action name.
- description: (string)
Action description.
- ruleId: required(string)
The ID of the rule to execute.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was last updated.
Example:
2023-06-30T12:30:54.540Z
- id: required(string)
Example:
{
"content": [
{
"id": "3",
"name": "Check lighting state",
"description": "Runs the rule that checks lighting state",
"ruleId": "f6fde168-bbff-4383-9912-b9e6c51b7a88",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
],
"totalElements": 1
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Retrieves action.
Updates action.
Deletes action.
get /action-types/rule-execution/actions/{actionId}
Retrieves action.
- rule-execution-action:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 200
Action is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
Action ID.
- name: required(string)
Action name.
- description: (string)
Action description.
- ruleId: required(string)
The ID of the rule to execute.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was last updated.
Example:
2023-06-30T12:30:54.540Z
Example:
{
"id": "3",
"name": "Check lighting state",
"description": "Runs the rule that checks lighting state",
"ruleId": "f6fde168-bbff-4383-9912-b9e6c51b7a88",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /action-types/rule-execution/actions/{actionId}
Updates action.
- rule-execution-action:update
- rule:execute
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- ruleId: required(string)
The ID of the rule to execute.
Example:
{
"name": "Check lighting state",
"description": "Runs the rule that checks lighting state",
"ruleId": "f6fde168-bbff-4383-9912-b9e6c51b7a88",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 204
Action is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /action-types/rule-execution/actions/{actionId}
Deletes action.
- rule-execution-action:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 204
Action is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Creates a new action.
Retrieves actions.
post /action-types/data-sample/actions
Creates a new action.
- tenant:data-sample-action:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- endpointIdExpression: required(string)
The expression that returns the endpoint ID to send data samples on behalf of.
- dataSamplesExpression: required(string)
Expression that returns data sample(s) to send.
Example:
{
"name": "Temperature sensor",
"description": "Publishes temperature data samples.",
"endpointIdExpression": "return '65efe88c-6875-4aa6-a064-8c65f9f40514'",
"dataSamplesExpression": "return [{temperature:23}];",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 201
Action is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/action-types/data-sample/actions/{actionId}
Example:
https://cloud.kaaiot.com/re/api/v1/action-types/data-sample/actions/70
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /action-types/data-sample/actions
Retrieves actions.
- data-sample-action:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- sort: (one of createdAt, updatedAt - default: createdAt)
Field to sort by.
Example:
updatedAt
- sortOrder: (one of asc, desc - default: desc)
Sort direction.
Example:
asc
- name: (string)
Name. Supports partial match.
Example:
myName
- description: (string)
Description. Supports partial match.
Example:
myDescription
- include: (ATTACHED_TO_ALERT_SETTING)
Criteria to include records by.
- ATTACHED_TO_ALERT_SETTING - include records attached to alert setting(s).
Example:
ATTACHED_TO_ALERT_SETTING
HTTP status code 200
Actions are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of all-types.DataSampleActionResponse)
Items: DataSampleActionResponse
- id: required(string)
Action ID.
- name: required(string)
Action name.
- description: (string)
Action description.
- endpointIdExpression: required(string)
The expression that returns the endpoint ID to send data samples on behalf of.
- dataSamplesExpression: required(string)
Expression that returns data sample(s) to send.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was last updated.
Example:
2023-06-30T12:30:54.540Z
- id: required(string)
Example:
{
"content": [
{
"id": "5",
"name": "Temperature sensor",
"description": "Publishes temperature data samples.",
"endpointIdExpression": "return '65efe88c-6875-4aa6-a064-8c65f9f40514'",
"dataSamplesExpression": "return [{temperature:23}];",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
],
"totalElements": 2
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Retrieves action.
Updates action.
Deletes action.
get /action-types/data-sample/actions/{actionId}
Retrieves action.
- data-sample-action:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 200
Action is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
Action ID.
- name: required(string)
Action name.
- description: (string)
Action description.
- endpointIdExpression: required(string)
The expression that returns the endpoint ID to send data samples on behalf of.
- dataSamplesExpression: required(string)
Expression that returns data sample(s) to send.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was last updated.
Example:
2023-06-30T12:30:54.540Z
Example:
{
"id": "5",
"name": "Temperature sensor",
"description": "Publishes temperature data samples.",
"endpointIdExpression": "return '65efe88c-6875-4aa6-a064-8c65f9f40514'",
"dataSamplesExpression": "return [{temperature:23}]",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /action-types/data-sample/actions/{actionId}
Updates action.
- data-sample-action:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- endpointIdExpression: required(string)
The expression that returns the endpoint ID to send data samples on behalf of.
- dataSamplesExpression: required(string)
Expression that returns data sample(s) to send.
Example:
{
"name": "Temperature sensor",
"description": "Publishes temperature data samples.",
"endpointIdExpression": "return '65efe88c-6875-4aa6-a064-8c65f9f40514'",
"dataSamplesExpression": "return [{temperature:23}];",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 204
Action is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /action-types/data-sample/actions/{actionId}
Deletes action.
- data-sample-action:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 204
Action is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Creates a new action.
Retrieves actions.
post /action-types/time-series/actions
Creates a new action.
- tenant:time-series-action:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- endpointIdExpression: required(string)
The expression that returns the endpoint ID to send time series on behalf of.
- timeSeriesNameExpression: required(string)
The expression that returns the time series name.
- timeSeriesExpression: required(string)
Expression that returns time series data to send.
- uiMetadata: (string)
UI metadata.
Example:
{
"name": "Weather sensor",
"description": "Publishes weather time series data",
"endpointIdExpression": "return '65efe88c-6875-4aa6-a064-8c65f9f40514'",
"timeSeriesNameExpression": "return 'time-series'",
"timeSeriesExpression": "return [{temperature:10,humidity:63}]",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 201
Action is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/action-types/time-series/actions/{actionId}
Example:
https://cloud.kaaiot.com/re/api/v1/action-types/time-series/actions/70
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /action-types/time-series/actions
Retrieves actions.
- time-series-action:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- sort: (one of createdAt, updatedAt - default: createdAt)
Field to sort by.
Example:
updatedAt
- sortOrder: (one of asc, desc - default: desc)
Sort direction.
Example:
asc
- name: (string)
Name. Supports partial match.
Example:
myName
- description: (string)
Description. Supports partial match.
Example:
myDescription
- include: (ATTACHED_TO_ALERT_SETTING)
Criteria to include records by.
- ATTACHED_TO_ALERT_SETTING - include records attached to alert setting(s).
Example:
ATTACHED_TO_ALERT_SETTING
HTTP status code 200
Actions are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of all-types.TimeSeriesEventActionResponse)
Items: TimeSeriesEventActionResponse
- id: required(string)
Action ID.
- name: required(string)
Action name.
- description: (string)
Action description.
- endpointIdExpression: required(string)
The expression that returns the endpoint ID to send time series on behalf of.
- timeSeriesNameExpression: required(string)
The expression that returns the time series name.
- timeSeriesExpression: required(string)
Expression that returns time series data to send.
- uiMetadata: (string)
UI metadata.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was last updated.
Example:
2023-06-30T12:30:54.540Z
- id: required(string)
Example:
{
"content": [
{
"id": "7",
"name": "Weather sensor",
"description": "Publishes weather time series data",
"endpointIdExpression": "return '65efe88c-6875-4aa6-a064-8c65f9f40514'",
"timeSeriesNameExpression": "return 'time-series'",
"timeSeriesExpression": "return [{temperature:10,humidity:63}]",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-07-30T12:30:54.540Z",
"updatedAt": "2023-08-30T12:30:54.541Z"
}
],
"totalElements": 1
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Retrieves action.
Updates action.
Deletes action.
get /action-types/time-series/actions/{actionId}
Retrieves action.
- time-series-action:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 200
Action is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
Action ID.
- name: required(string)
Action name.
- description: (string)
Action description.
- endpointIdExpression: required(string)
The expression that returns the endpoint ID to send time series on behalf of.
- timeSeriesNameExpression: required(string)
The expression that returns the time series name.
- timeSeriesExpression: required(string)
Expression that returns time series data to send.
- uiMetadata: (string)
UI metadata.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was last updated.
Example:
2023-06-30T12:30:54.540Z
Example:
{
"id": "7",
"name": "Weather sensor",
"description": "Publishes weather time series data",
"endpointIdExpression": "return '65efe88c-6875-4aa6-a064-8c65f9f40514'",
"timeSeriesNameExpression": "return 'time-series'",
"timeSeriesExpression": "return [{temperature:10,humidity:63}]",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-07-30T12:30:54.540Z",
"updatedAt": "2023-08-30T12:30:54.541Z"
}
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /action-types/time-series/actions/{actionId}
Updates action.
- time-series-action:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- endpointIdExpression: required(string)
The expression that returns the endpoint ID to send time series on behalf of.
- timeSeriesNameExpression: required(string)
The expression that returns the time series name.
- timeSeriesExpression: required(string)
Expression that returns time series data to send.
- uiMetadata: (string)
UI metadata.
Example:
{
"name": "Weather sensor",
"description": "Publishes weather time series data",
"endpointIdExpression": "return '65efe88c-6875-4aa6-a064-8c65f9f40514'",
"timeSeriesNameExpression": "return 'time-series'",
"timeSeriesExpression": "return [{temperature:10,humidity:63}]",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 204
Action is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /action-types/time-series/actions/{actionId}
Deletes action.
- time-series-action:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 204
Action is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Creates a new action.
Retrieves actions.
post /action-types/alert-activation/actions
Creates a new action.
- tenant:alert-activation-action:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- alertTypeExpression: required(string)
Alert type expression. Must return string that matches
^[a-zA-Z0-9_]{1,50}+$
pattern. - severityLevelExpression: required(string)
Returns alert severity level. Must return one of
"INFO"
,"LOW"
,"MEDIUM"
,"HIGH"
,"CRITICAL"
. - entityType: required(ENDPOINT)
Type of an entity that alert relates to.
- entityIdExpression: required(string)
Expression that returns ID of an entity that alert raised on.
- activateReasonExpression: required(string)
Expression that returns activation reason.
- startedAtExpression: (string)
Expression that returns when the alert was started. Must return timestamp in millis.
- lastActiveAtExpression: (string)
Expression that returns when the alert was last active at. Must return timestamp in millis.
- uiMetadata: (string)
UI metadata.
Example:
{
"name": "High temperature",
"description": "Sensor reports high temperature",
"alertTypeExpression": "return 'HIGH_TEMPERATURE';",
"severityLevelExpression": "return 'HIGH';",
"entityType": "ENDPOINT",
"entityIdExpression": "return 'endpoint-id-1';",
"activateReasonExpression": "return 'High temperature';",
"startedAtExpression": "return new Date('2023-11-06T21:53:07Z').getTime();",
"lastActiveAtExpression": "return 1699307588000;",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 201
Action is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/action-types/alert-activation/actions/{actionId}
Example:
https://cloud.kaaiot.com/re/api/v1/action-types/alert-activation/actions/37
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /action-types/alert-activation/actions
Retrieves actions.
- alert-activation-action:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- name: (string)
Name. Supports partial match.
Example:
myName
- description: (string)
Description. Supports partial match.
Example:
myDescription
- sort: (one of createdAt, updatedAt - default: createdAt)
Field to sort by.
Example:
updatedAt
- sortOrder: (one of asc, desc - default: desc)
Sort direction.
Example:
asc
- include: (ATTACHED_TO_ALERT_SETTING)
Criteria to include records by.
- ATTACHED_TO_ALERT_SETTING - include records attached to alert setting(s).
Example:
ATTACHED_TO_ALERT_SETTING
HTTP status code 200
Actions are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of alert-activation-action-types.ActionResponse)
Items: ActionResponse
- id: required(string)
Action ID.
- name: required(string)
Action name.
- description: (string)
Action description.
- alertTypeExpression: required(string)
Alert type expression. Must return string that matches
^[A-Z0-9_]{3,50}+$
pattern. - severityLevelExpression: required(string)
Returns alert severity level. Must return one of
"INFO"
,"LOW"
,"MEDIUM"
,"HIGH"
,"CRITICAL"
. - entityType: required(ENDPOINT)
Type of an entity that alert relates to.
- entityIdExpression: required(string)
Expression that returns ID of an entity that alert raised on.
- activateReasonExpression: required(string)
Expression that returns activation reason.
- startedAtExpression: (string)
Expression that returns when the alert was started. Must return timestamp in millis.
- lastActiveAtExpression: (string)
Expression that returns when the alert was last active at. Must return timestamp in millis.
- uiMetadata: (string)
UI metadata.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was last updated.
Example:
2023-06-30T12:30:54.540Z
- id: required(string)
Example:
{
"content": [
{
"id": "75b05695-27ca-46eb-9481-69c199088d99",
"name": "High temperature",
"description": "Sensor reports high temperature",
"alertTypeExpression": "return 'HIGH_TEMPERATURE';",
"severityLevelExpression": "return 'HIGH';",
"entityType": "ENDPOINT",
"entityIdExpression": "return 'endpoint-id-1';",
"activateReasonExpression": "return 'High temperature';",
"startedAtExpression": "return new Date('2023-11-06T21:53:07Z').getTime();",
"lastActiveAtExpression": "return 1699307588000;",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
],
"totalElements": 2
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Retrieves action.
Updates action.
Deletes action.
get /action-types/alert-activation/actions/{actionId}
Retrieves action.
- alert-activation-action:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 200
Action is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
Action ID.
- name: required(string)
Action name.
- description: (string)
Action description.
- alertTypeExpression: required(string)
Alert type expression. Must return string that matches
^[A-Z0-9_]{3,50}+$
pattern. - severityLevelExpression: required(string)
Returns alert severity level. Must return one of
"INFO"
,"LOW"
,"MEDIUM"
,"HIGH"
,"CRITICAL"
. - entityType: required(ENDPOINT)
Type of an entity that alert relates to.
- entityIdExpression: required(string)
Expression that returns ID of an entity that alert raised on.
- activateReasonExpression: required(string)
Expression that returns activation reason.
- startedAtExpression: (string)
Expression that returns when the alert was started. Must return timestamp in millis.
- lastActiveAtExpression: (string)
Expression that returns when the alert was last active at. Must return timestamp in millis.
- uiMetadata: (string)
UI metadata.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was last updated.
Example:
2023-06-30T12:30:54.540Z
Example:
{
"id": "75b05695-27ca-46eb-9481-69c199088d99",
"name": "High temperature",
"description": "Sensor reports high temperature",
"alertTypeExpression": "return 'HIGH_TEMPERATURE';",
"severityLevelExpression": "return 'HIGH';",
"entityType": "ENDPOINT",
"entityIdExpression": "return 'endpoint-id-1';",
"activateReasonExpression": "return 'High temperature';",
"startedAtExpression": "return new Date('2023-11-06T21:53:07Z').getTime();",
"lastActiveAtExpression": "return 1699307588000;",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /action-types/alert-activation/actions/{actionId}
Updates action.
- alert-activation-action:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- alertTypeExpression: required(string)
Alert type expression. Must return string that matches
^[a-zA-Z0-9_]{1,50}+$
pattern. - severityLevelExpression: required(string)
Returns alert severity level. Must return one of
"INFO"
,"LOW"
,"MEDIUM"
,"HIGH"
,"CRITICAL"
. - entityType: required(ENDPOINT)
Type of an entity that alert relates to.
- entityIdExpression: required(string)
Expression that returns ID of an entity that alert raised on.
- activateReasonExpression: required(string)
Expression that returns activation reason.
- startedAtExpression: (string)
Expression that returns when the alert was started. Must return timestamp in millis.
- lastActiveAtExpression: (string)
Expression that returns when the alert was last active at. Must return timestamp in millis.
- uiMetadata: (string)
UI metadata.
Example:
{
"name": "High temperature",
"description": "Sensor reports high temperature",
"alertTypeExpression": "return 'HIGH_TEMPERATURE';",
"severityLevelExpression": "return 'HIGH';",
"entityType": "ENDPOINT",
"entityIdExpression": "return 'endpoint-id-1';",
"activateReasonExpression": "return 'High temperature';",
"startedAtExpression": "return new Date('2023-11-06T21:53:07Z').getTime();",
"lastActiveAtExpression": "return 1699307588000;",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 204
Action is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /action-types/alert-activation/actions/{actionId}
Deletes action.
- alert-activation-action:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 204
Action is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Creates a new action.
Retrieves actions.
post /action-types/alert-resolution/actions
Creates a new action.
- tenant:alert-resolution-action:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- alertTypeExpression: required(string)
Alert type expression. Must return string that matches
^[A-Z0-9_]{3,50}+$
pattern. - entityType: required(ENDPOINT)
Type of an entity that alert relates to.
- entityIdExpression: required(string)
Expression that returns ID of an entity that alert raised on.
- resolveReasonExpression: required(string)
Expression that returns resolution reason.
- uiMetadata: (string)
UI metadata.
Example:
{
"name": "OK temperature",
"description": "Sensor reports OK temperature",
"alertType": "HIGH_TEMPERATURE",
"entityType": "ENDPOINT",
"entityIdExpression": "return 'endpoint-id-1';",
"resolveReasonExpression": "return 'temperature back to norm';",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 201
Action is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/action-types/alert-resolution/actions/{actionId}
Example:
https://cloud.kaaiot.com/re/api/v1/action-types/alert-resolution/actions/37
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /action-types/alert-resolution/actions
Retrieves actions.
- alert-resolution-action:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- name: (string)
Name. Supports partial match.
Example:
myName
- description: (string)
Description. Supports partial match.
Example:
myDescription
- sort: (one of createdAt, updatedAt - default: createdAt)
Field to sort by.
Example:
updatedAt
- sortOrder: (one of asc, desc - default: desc)
Sort direction.
Example:
asc
- include: (ATTACHED_TO_ALERT_SETTING)
Criteria to include records by.
- ATTACHED_TO_ALERT_SETTING - include records attached to alert setting(s).
Example:
ATTACHED_TO_ALERT_SETTING
HTTP status code 200
Actions are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of alert-resolution-action-types.ActionResponse)
Items: ActionResponse
- id: required(string)
Action ID.
- name: required(string)
Action name.
- description: (string)
Action description.
- alertTypeExpression: required(string)
Alert type expression. Must return string that matches
^[A-Z0-9_]{3,50}+$
pattern. - entityType: required(ENDPOINT)
Type of an entity that alert relates to.
- entityIdExpression: required(string)
Expression that returns ID of an entity that alert raised on.
- resolveReasonExpression: required(string)
Expression that returns resolution reason.
- uiMetadata: (string)
UI metadata.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was last updated.
Example:
2023-06-30T12:30:54.540Z
- id: required(string)
Example:
{
"content": [
{
"id": "6b8b6b4d-127d-44b6-9a14-10b0bc60b7dd",
"name": "OK temperature",
"description": "Sensor reports OK temperature",
"alertType": "HIGH_TEMPERATURE",
"entityType": "ENDPOINT",
"entityIdExpression": "return 'endpoint-id-1';",
"resolveReasonExpression": "return 'temperature back to norm';",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
],
"totalElements": 2
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Retrieves action.
Updates action.
Deletes action.
get /action-types/alert-resolution/actions/{actionId}
Retrieves action.
- alert-resolution-action:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 200
Action is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
Action ID.
- name: required(string)
Action name.
- description: (string)
Action description.
- alertTypeExpression: required(string)
Alert type expression. Must return string that matches
^[A-Z0-9_]{3,50}+$
pattern. - entityType: required(ENDPOINT)
Type of an entity that alert relates to.
- entityIdExpression: required(string)
Expression that returns ID of an entity that alert raised on.
- resolveReasonExpression: required(string)
Expression that returns resolution reason.
- uiMetadata: (string)
UI metadata.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was last updated.
Example:
2023-06-30T12:30:54.540Z
Example:
{
"id": "6b8b6b4d-127d-44b6-9a14-10b0bc60b7dd",
"name": "OK temperature",
"description": "Sensor reports OK temperature",
"alertType": "HIGH_TEMPERATURE",
"entityType": "ENDPOINT",
"entityIdExpression": "return 'endpoint-id-1';",
"resolveReasonExpression": "return 'temperature back to norm';",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /action-types/alert-resolution/actions/{actionId}
Updates action.
- alert-resolution-action:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- alertTypeExpression: required(string)
Alert type expression. Must return string that matches
^[A-Z0-9_]{3,50}+$
pattern. - entityType: required(ENDPOINT)
Type of an entity that alert relates to.
- entityIdExpression: required(string)
Expression that returns ID of an entity that alert raised on.
- resolveReasonExpression: required(string)
Expression that returns resolution reason.
- uiMetadata: (string)
UI metadata.
Example:
{
"name": "OK temperature",
"description": "Sensor reports OK temperature",
"alertType": "HIGH_TEMPERATURE",
"entityType": "ENDPOINT",
"entityIdExpression": "return 'endpoint-id-1';",
"resolveReasonExpression": "return 'temperature back to norm';",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 204
Action is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /action-types/alert-resolution/actions/{actionId}
Deletes action.
- alert-resolution-action:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 204
Action is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Creates a new action.
Retrieves actions.
post /action-types/send-email/actions
Creates a new action.
- tenant:send-email-action:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- recipientsExpression: required(string)
Email recipients.
- subjectExpression: required(string)
Email subject expression.
- textExpression: required(string)
Email text expression.
- contentType: (one of TEXT, HTML - default: TEXT)
Email content type.
- uiMetadata: (string)
UI metadata.
Example:
{
"name": "High temperature",
"description": "Sensor reports high temperature",
"recipientsExpression": "return ['tom@acme.com', 'jerry@acme.com']",
"subjectExpression": "return 'High temperature';",
"textExpression": "return 'Current temperature is ' + 20;",
"contentType": "TEXT",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 201
Action is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/action-types/send-email/actions/{actionId}
Example:
https://cloud.kaaiot.com/re/api/v1/action-types/send-email/actions/37
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /action-types/send-email/actions
Retrieves actions.
- send-email-action:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- name: (string)
Name. Supports partial match.
Example:
myName
- description: (string)
Description. Supports partial match.
Example:
myDescription
- sort: (one of createdAt, updatedAt - default: createdAt)
Field to sort by.
Example:
updatedAt
- sortOrder: (one of asc, desc - default: desc)
Sort direction.
Example:
asc
- include: (ATTACHED_TO_ALERT_SETTING)
Criteria to include records by.
- ATTACHED_TO_ALERT_SETTING - include records attached to alert setting(s).
Example:
ATTACHED_TO_ALERT_SETTING
HTTP status code 200
Actions are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of send-email-action-types.ActionResponse)
Items: ActionResponse
- id: required(string)
Action ID.
- name: required(string)
Action name.
- description: (string)
Action description.
- recipientsExpression: required(string)
Email recipients.
- subjectExpression: required(string)
Email subject expression.
- textExpression: required(string)
Email text expression.
- contentType: required(one of TEXT, HTML)
Email content type.
- uiMetadata: (string)
UI metadata.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was last updated.
Example:
2023-06-30T12:30:54.540Z
- id: required(string)
Example:
{
"content": [
{
"id": "75b05695-27ca-46eb-9481-69c199088d99",
"name": "High temperature",
"description": "Sensor reports high temperature",
"recipientsExpression": "return ['tom@acme.com', 'jerry@acme.com']",
"subjectExpression": "return 'High temperature';",
"textExpression": "return 'Current temperature is ' + 20;",
"contentType": "TEXT",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
],
"totalElements": 2
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Retrieves action.
Updates action.
Deletes action.
get /action-types/send-email/actions/{actionId}
Retrieves action.
- send-email-action:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 200
Action is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
Action ID.
- name: required(string)
Action name.
- description: (string)
Action description.
- recipientsExpression: required(string)
Email recipients.
- subjectExpression: required(string)
Email subject expression.
- textExpression: required(string)
Email text expression.
- contentType: required(one of TEXT, HTML)
Email content type.
- uiMetadata: (string)
UI metadata.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the action was last updated.
Example:
2023-06-30T12:30:54.540Z
Example:
{
"id": "75b05695-27ca-46eb-9481-69c199088d99",
"name": "High temperature",
"description": "Sensor reports high temperature",
"recipientsExpression": "return ['tom@acme.com', 'jerry@acme.com']",
"subjectExpression": "return 'High temperature';",
"textExpression": "return 'Current temperature is ' + 20;",
"contentType": "TEXT",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /action-types/send-email/actions/{actionId}
Updates action.
- send-email-action:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Action name.
- description: (string)
Action description.
- recipientsExpression: required(string)
Email recipients.
- subjectExpression: required(string)
Email subject expression.
- textExpression: required(string)
Email text expression.
- contentType: (one of TEXT, HTML - default: TEXT)
Email content type.
- uiMetadata: (string)
UI metadata.
Example:
{
"name": "High temperature",
"description": "Sensor reports high temperature",
"recipientsExpression": "return ['tom@acme.com', 'jerry@acme.com']",
"subjectExpression": "return 'High temperature';",
"textExpression": "return 'Current temperature is ' + 20;",
"contentType": "TEXT",
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 204
Action is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /action-types/send-email/actions/{actionId}
Deletes action.
- send-email-action:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- actionId: required(string)
Action ID
HTTP status code 204
Action is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Expressions
Operations on expressions.
Evaluates expression against provided data.
post /expressions/evaluation
Evaluates expression against provided data.
Body
Media type: application/json
Type: object
Properties- expression: required(string)
Expression to evaluate.
- endpointMetadata: (any)
Endpoint metadata to run evaluation against.
- childrenEndpoints: (array of string)
Children endpoints to run evaluation against.
Example:
{
"expression": "ctx.endpointMetadata['fed5c358-1240-4ff0-adca-929bae563ad3'].currentStatus == 'alarm' && ctx.childrenEndpoints['d006175b-69bc-40a1-8bda-89686102933e'].size() == 2",
"endpointMetadata": {
"currentStatus": "alarm"
},
"childrenEndpoints": [
"d006175b-69bc-40a1-8bda-89686102933e",
"7981f9a6-00b0-11ee-be56-0242ac120002"
]
}
HTTP status code 200
Expression is successfully evaluated.
Body
Media type: application/json
Type: any
Example:
true
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
Triggers
Operations on triggers.
Creates a new trigger.
Returns trigger list.
post /trigger-types/endpoint-metadata-updated/triggers
Creates a new trigger.
- tenant:endpoint-metadata-updated-trigger:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- uiMetadata: (string)
UI metadata.
- metadata: (object)
Additional trigger metadata.
Example:
{
"name": "1",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 201
Trigger is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/trigger-types/endpoint-metadata-updated/triggers/{triggerId}
Example:
https://cloud.kaaiot.com/re/api/v1/trigger-types/endpoint-metadata-updated/triggers/25
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /trigger-types/endpoint-metadata-updated/triggers
Returns trigger list.
- endpoint-metadata-updated-trigger:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- include: (ATTACHED_TO_ALERT_SETTING)
Criteria to include records by.
- ATTACHED_TO_ALERT_SETTING - include records attached to alert setting(s).
Example:
ATTACHED_TO_ALERT_SETTING
HTTP status code 200
Triggers are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of endpoint-related-trigger-types.TriggerResponse)
Items: TriggerResponse
- id: required(string)
Trigger ID.
- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- metadata: (object)
Additional trigger metadata.
- uiMetadata: (string)
UI metadata.
- id: required(string)
Example:
{
"content": [
{
"id": "2",
"name": "Trigger name",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
],
"totalElements": 1
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Returns trigger by ID.
Updates a trigger.
Deletes trigger.
get /trigger-types/endpoint-metadata-updated/triggers/{triggerId}
Returns trigger by ID.
- endpoint-metadata-updated-trigger:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
HTTP status code 200
Trigger is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
Trigger ID.
- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- metadata: (object)
Additional trigger metadata.
- uiMetadata: (string)
UI metadata.
Example:
{
"id": "2",
"name": "Trigger name",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /trigger-types/endpoint-metadata-updated/triggers/{triggerId}
Updates a trigger.
- endpoint-metadata-updated-trigger:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- uiMetadata: (string)
UI metadata.
- metadata: (object)
Additional trigger metadata.
Example:
{
"name": "1",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 204
Trigger is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /trigger-types/endpoint-metadata-updated/triggers/{triggerId}
Deletes trigger.
- endpoint-metadata-updated-trigger:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
HTTP status code 204
Trigger is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Creates a new trigger.
Returns trigger list.
post /trigger-types/endpoint-time-series-updated/trigger
Creates a new trigger.
- tenant:endpoint-time-series-updated-trigger:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- uiMetadata: (string)
UI metadata.
- timeSeriesNames: required(array of string)
Time series names that trigger will react on.
Example:
{
"name": "Trigger name",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"timeSeriesNames": [
"temperature",
"humidity"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 201
Trigger is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/trigger-types/endpoint-time-series-updated/triggers/{triggerId}
Example:
https://cloud.kaaiot.com/re/api/v1/trigger-types/endpoint-time-series-updated/triggers/25
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /trigger-types/endpoint-time-series-updated/trigger
Returns trigger list.
- endpoint-time-series-updated-trigger:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- include: (ATTACHED_TO_ALERT_SETTING)
Criteria to include records by.
- ATTACHED_TO_ALERT_SETTING - include records attached to alert setting(s).
Example:
ATTACHED_TO_ALERT_SETTING
HTTP status code 200
Triggers are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of endpoint-related-trigger-types.TriggerResponse)
Items: TriggerResponse
- id: required(string)
Trigger ID.
- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- metadata: (object)
Additional trigger metadata.
- uiMetadata: (string)
UI metadata.
- id: required(string)
Example:
{
"content": [
{
"id": "1",
"name": "Trigger name",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"metadata:": {
"timeSeriesName_1": "temperature",
"timeSeriesName_2": "humidity"
},
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
],
"totalElements": 1
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Returns trigger by ID.
Updates a trigger.
Deletes trigger.
get /trigger-types/endpoint-time-series-updated/trigger/{triggerId}
Returns trigger by ID.
- endpoint-time-series-updated-trigger:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
HTTP status code 200
Trigger is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
Trigger ID.
- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- metadata: (object)
Additional trigger metadata.
- uiMetadata: (string)
UI metadata.
Example:
{
"id": "1",
"name": "Trigger name",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"metadata:": {
"timeSeriesName_1": "temperature",
"timeSeriesName_2": "humidity"
},
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /trigger-types/endpoint-time-series-updated/trigger/{triggerId}
Updates a trigger.
- endpoint-time-series-updated-trigger:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- uiMetadata: (string)
UI metadata.
- timeSeriesNames: required(array of string)
Time series names that trigger will react on.
Example:
{
"name": "Trigger name",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"timeSeriesNames": [
"temperature",
"humidity"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 204
Trigger is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /trigger-types/endpoint-time-series-updated/trigger/{triggerId}
Deletes trigger.
- endpoint-time-series-updated-trigger:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
HTTP status code 204
Trigger is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Creates a new trigger.
Returns trigger list.
post /trigger-types/endpoint-command-result-received/trigger
Creates a new trigger.
- tenant:endpoint-command-result-received-trigger:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- uiMetadata: (string)
UI metadata.
- commandTypes: required(array of string)
Command types that trigger will react on.
Example:
{
"name": "Trigger name",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"commandTypes": [
"goto",
"reboot"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 201
Trigger is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/trigger-types/endpoint-command-result-received/triggers/{triggerId}
Example:
https://cloud.kaaiot.com/re/api/v1/trigger-types/endpoint-command-result-received/triggers/25
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /trigger-types/endpoint-command-result-received/trigger
Returns trigger list.
- endpoint-command-result-received-trigger:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- include: (ATTACHED_TO_ALERT_SETTING)
Criteria to include records by.
- ATTACHED_TO_ALERT_SETTING - include records attached to alert setting(s).
Example:
ATTACHED_TO_ALERT_SETTING
HTTP status code 200
Triggers are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of endpoint-related-trigger-types.TriggerResponse)
Items: TriggerResponse
- id: required(string)
Trigger ID.
- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- metadata: (object)
Additional trigger metadata.
- uiMetadata: (string)
UI metadata.
- id: required(string)
Example:
{
"content": [
{
"id": "1",
"name": "Trigger name",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"metadata:": {
"commandType_1": "goto",
"commandType_2": "reboot"
},
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
],
"totalElements": 1
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Returns trigger by ID.
Updates a trigger.
Deletes trigger.
get /trigger-types/endpoint-command-result-received/trigger/{triggerId}
Returns trigger by ID.
- endpoint-command-result-received-trigger:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
HTTP status code 200
Trigger is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
Trigger ID.
- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- metadata: (object)
Additional trigger metadata.
- uiMetadata: (string)
UI metadata.
Example:
{
"id": "1",
"name": "Trigger name",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"metadata:": {
"commandType_1": "goto",
"commandType_2": "reboot"
},
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /trigger-types/endpoint-command-result-received/trigger/{triggerId}
Updates a trigger.
- endpoint-command-result-received-trigger:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- uiMetadata: (string)
UI metadata.
- commandTypes: required(array of string)
Command types that trigger will react on.
Example:
{
"name": "Trigger name",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"commandTypes": [
"goto",
"reboot"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 204
Trigger is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /trigger-types/endpoint-command-result-received/trigger/{triggerId}
Deletes trigger.
- endpoint-command-result-received-trigger:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
HTTP status code 204
Trigger is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Creates a new trigger.
Returns trigger list.
post /trigger-types/endpoint-command-dispatched/trigger
Creates a new trigger.
- tenant:endpoint-command-dispatched-trigger:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- uiMetadata: (string)
UI metadata.
- commandTypes: required(array of string)
Command types that trigger will react on.
Example:
{
"name": "Trigger name",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"commandTypes": [
"goto",
"reboot"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 201
Trigger is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/trigger-types/endpoint-command-dispatched/triggers/{triggerId}
Example:
https://cloud.kaaiot.com/re/api/v1/trigger-types/endpoint-command-dispatched/triggers/25
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /trigger-types/endpoint-command-dispatched/trigger
Returns trigger list.
- endpoint-command-dispatched-trigger:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- include: (ATTACHED_TO_ALERT_SETTING)
Criteria to include records by.
- ATTACHED_TO_ALERT_SETTING - include records attached to alert setting(s).
Example:
ATTACHED_TO_ALERT_SETTING
HTTP status code 200
Triggers are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of endpoint-related-trigger-types.TriggerResponse)
Items: TriggerResponse
- id: required(string)
Trigger ID.
- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- metadata: (object)
Additional trigger metadata.
- uiMetadata: (string)
UI metadata.
- id: required(string)
Example:
{
"content": [
{
"id": "1",
"name": "Trigger name",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"metadata:": {
"commandType_1": "goto",
"commandType_2": "reboot"
},
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
],
"totalElements": 1
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Returns trigger by ID.
Updates a trigger.
Deletes trigger.
get /trigger-types/endpoint-command-dispatched/trigger/{triggerId}
Returns trigger by ID.
- endpoint-command-dispatched-trigger:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
HTTP status code 200
Trigger is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
Trigger ID.
- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- metadata: (object)
Additional trigger metadata.
- uiMetadata: (string)
UI metadata.
Example:
{
"id": "1",
"name": "Trigger name",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"metadata:": {
"commandType_1": "goto",
"commandType_2": "reboot"
},
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /trigger-types/endpoint-command-dispatched/trigger/{triggerId}
Updates a trigger.
- endpoint-command-dispatched-trigger:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- uiMetadata: (string)
UI metadata.
- commandTypes: required(array of string)
Command types that trigger will react on.
Example:
{
"name": "Trigger name",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"commandTypes": [
"goto",
"reboot"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 204
Trigger is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /trigger-types/endpoint-command-dispatched/trigger/{triggerId}
Deletes trigger.
- endpoint-command-dispatched-trigger:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
HTTP status code 204
Trigger is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Creates a new trigger.
Returns trigger list.
post /trigger-types/endpoint-data-samples-received/trigger
Creates a new trigger.
- tenant:endpoint-data-samples-received-trigger:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- uiMetadata: (string)
UI metadata.
- metadata: (object)
Additional trigger metadata.
Example:
{
"name": "1",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 201
Trigger is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/trigger-types/endpoint-data-samples-received/triggers/{triggerId}
Example:
https://cloud.kaaiot.com/re/api/v1/trigger-types/endpoint-data-samples-received/triggers/25
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /trigger-types/endpoint-data-samples-received/trigger
Returns trigger list.
- endpoint-data-samples-received-trigger:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- include: (ATTACHED_TO_ALERT_SETTING)
Criteria to include records by.
- ATTACHED_TO_ALERT_SETTING - include records attached to alert setting(s).
Example:
ATTACHED_TO_ALERT_SETTING
HTTP status code 200
Triggers are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of endpoint-related-trigger-types.TriggerResponse)
Items: TriggerResponse
- id: required(string)
Trigger ID.
- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- metadata: (object)
Additional trigger metadata.
- uiMetadata: (string)
UI metadata.
- id: required(string)
Example:
{
"content": [
{
"id": "2",
"name": "Trigger name",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
],
"totalElements": 1
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Returns trigger by ID.
Updates a trigger.
Deletes trigger.
get /trigger-types/endpoint-data-samples-received/trigger/{triggerId}
Returns trigger by ID.
- endpoint-data-samples-received-trigger:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
HTTP status code 200
Trigger is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
Trigger ID.
- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- metadata: (object)
Additional trigger metadata.
- uiMetadata: (string)
UI metadata.
Example:
{
"id": "2",
"name": "Trigger name",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /trigger-types/endpoint-data-samples-received/trigger/{triggerId}
Updates a trigger.
- endpoint-data-samples-received-trigger:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- uiMetadata: (string)
UI metadata.
- metadata: (object)
Additional trigger metadata.
Example:
{
"name": "1",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 204
Trigger is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /trigger-types/endpoint-data-samples-received/trigger/{triggerId}
Deletes trigger.
- endpoint-data-samples-received-trigger:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
HTTP status code 204
Trigger is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Creates a new trigger.
Returns trigger list.
post /trigger-types/alert-lifecycle-event/trigger
Creates a new trigger.
- tenant:alert-lifecycle-event-trigger:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- uiMetadata: (string)
UI metadata.
- metadata: required(object)
- alertLifecycleEventType: required(one of SEVERITY_LEVEL_INCREASED, SEVERITY_LEVEL_DECREASED, CREATED, ACTIVE, RESOLVED, ACKNOWLEDGED, UNACKNOWLEDGED)
List of comma separated types of alert lifecycle events to activate trigger on.
- alertLifecycleEventType: required(one of SEVERITY_LEVEL_INCREASED, SEVERITY_LEVEL_DECREASED, CREATED, ACTIVE, RESOLVED, ACKNOWLEDGED, UNACKNOWLEDGED)
Example:
{
"name": "1",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"metadata:": {
"alertLifecycleEventType": "SEVERITY_LEVEL_INCREASED,RESOLVED"
},
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 201
Trigger is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/trigger-types/alert-lifecycle-event/triggers/{triggerId}
Example:
https://cloud.kaaiot.com/re/api/v1/trigger-types/alert-lifecycle-event/triggers/25
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /trigger-types/alert-lifecycle-event/trigger
Returns trigger list.
- alert-lifecycle-event-trigger:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- include: (ATTACHED_TO_ALERT_SETTING)
Criteria to include records by.
- ATTACHED_TO_ALERT_SETTING - include records attached to alert setting(s).
Example:
ATTACHED_TO_ALERT_SETTING
HTTP status code 200
Triggers are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of endpoint-related-trigger-types.TriggerResponse)
Items: TriggerResponse
- id: required(string)
Trigger ID.
- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- metadata: (object)
Additional trigger metadata.
- uiMetadata: (string)
UI metadata.
- id: required(string)
Example:
{
"content": [
{
"id": "1",
"name": "'endpoint time series updated' trigger",
"description": "'endpoint time series updated' trigger that reacts to events on endpoints",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"metadata:": {
"alertLifecycleEventType": "SEVERITY_LEVEL_INCREASED,RESOLVED"
},
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
],
"totalElements": 1
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Returns trigger by ID.
Updates a trigger.
Deletes trigger.
get /trigger-types/alert-lifecycle-event/trigger/{triggerId}
Returns trigger by ID.
- alert-lifecycle-event-trigger:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
HTTP status code 200
Trigger is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
Trigger ID.
- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- metadata: (object)
Additional trigger metadata.
- uiMetadata: (string)
UI metadata.
Example:
{
"id": "1",
"name": "'endpoint time series updated' trigger",
"description": "'endpoint time series updated' trigger that reacts to events on endpoints",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"metadata:": {
"alertLifecycleEventType": "SEVERITY_LEVEL_INCREASED,RESOLVED"
},
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /trigger-types/alert-lifecycle-event/trigger/{triggerId}
Updates a trigger.
- alert-lifecycle-event-trigger:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- uiMetadata: (string)
UI metadata.
- metadata: (object)
Additional trigger metadata.
Example:
{
"name": "1",
"description": "Trigger description",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"metadata:": {
"alertLifecycleEventType": "SEVERITY_LEVEL_INCREASED,RESOLVED"
},
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 204
Trigger is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /trigger-types/alert-lifecycle-event/trigger/{triggerId}
Deletes trigger.
- alert-lifecycle-event-trigger:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
HTTP status code 204
Trigger is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Creates a new trigger.
Returns trigger list.
post /trigger-types/cron/triggers
Creates a new trigger.
- tenant:cron-trigger:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- cron: required(string)
Cron expression.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- uiMetadata: (string)
UI metadata.
Example:
{
"name": "Trigger name",
"description": "Trigger description",
"cron": "0 */10 * * * ?",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 201
Trigger is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/trigger-types/cron/triggers/{triggerId}
Example:
https://cloud.kaaiot.com/re/api/v1/trigger-types/cron/triggers/25
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /trigger-types/cron/triggers
Returns trigger list.
- cron-trigger:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- name: (string)
Name. Supports partial match.
Example:
myName
- description: (string)
Description. Supports partial match.
Example:
myDescription
- sort: (one of createdAt, updatedAt - default: createdAt)
Field to sort by.
Example:
updatedAt
- sortOrder: (one of asc, desc - default: desc)
Sort direction.
Example:
asc
- include: (ATTACHED_TO_ALERT_SETTING)
Criteria to include records by.
- ATTACHED_TO_ALERT_SETTING - include records attached to alert setting(s).
Example:
ATTACHED_TO_ALERT_SETTING
HTTP status code 200
Triggers are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of cron-trigger-types.TriggerResponse)
Items: TriggerResponse
- id: required(string)
Trigger ID.
- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- cron: required(string)
Cron expression.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- uiMetadata: (string)
UI metadata.
- id: required(string)
Example:
{
"content": [
{
"id": "1",
"name": "Trigger name",
"description": "Trigger description",
"cron": "0 */10 * * * ?",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
],
"totalElements": 1
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Returns trigger by ID.
Updates a trigger.
Deletes trigger.
get /trigger-types/cron/triggers/{triggerId}
Returns trigger by ID.
- cron-trigger:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
HTTP status code 200
Trigger is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
Trigger ID.
- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- cron: required(string)
Cron expression.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- uiMetadata: (string)
UI metadata.
Example:
{
"id": "1",
"name": "Trigger name",
"description": "Trigger description",
"cron": "0 */10 * * * ?",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /trigger-types/cron/triggers/{triggerId}
Updates a trigger.
- cron-trigger:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Trigger name.
- description: (string)
Trigger description.
- cron: required(string)
Cron expression.
- appName: (string)
Application name of the endpoint(s) that trigger will react on.
- appVersionName: (string)
Application version of the endpoint(s) that trigger will react on.
- endpointIds: (array of string)
Endpoint IDs that trigger will react on.
- uiMetadata: (string)
UI metadata.
Example:
{
"name": "Trigger name",
"description": "Trigger description",
"cron": "0 */10 * * * ?",
"endpointIds": [
"98ced78d-6875-8bd6-c064-8c65f9f40514",
"65efe88c-6875-4aa6-a064-7a38f9c40519"
],
"uiMetadata": "{\"severity\" : \"CRITICAL\"}"
}
HTTP status code 204
Trigger is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /trigger-types/cron/triggers/{triggerId}
Deletes trigger.
- cron-trigger:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- triggerId: required(string)
Trigger ID
HTTP status code 204
Trigger is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Alerts
Operations on alerts.
Retrieves alerts.
get /alerts
Retrieves alerts.
- endpoint:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- entityType: required(one of ENDPOINT, TENANT)
Entity type.
Example:
ENDPOINT
- entityIds: (string)
Entity ids.
Example:
c0e92a30-5958-4dc2-b275-b383efafa87d
- alertSettingId: (string)
Alert setting id.
Example:
75b05695-27ca-46eb-9481-69c199088d99
- alertType: (array)
Alert type.
Example:
[ "HIGH_TEMPERATURE", "LOW_PRESSURE" ]
- state: (one of ACTIVE, RESOLVED)
Alert state.
Example:
ACTIVE
- acknowledgement: (one of UNACKNOWLEDGED, ACKNOWLEDGED)
Alert acknowledgement.
Example:
UNACKNOWLEDGED
- severityLevel: (array)
Alert severity level.
Example:
[ "CRITICAL", "HIGH" ]
- entityMetadataPath: (string)
Entity metadata path.
Example:
location.city
- entityMetadataValue: (string)
Entity metadata value.
Example:
Kyiv
- fromStartedAt: (datetime)
Timestamp in ISO 8601 format (UTC timezone) to return alerts from. Inclusive.
Example:
2023-03-02T04:05:06
- toStartedAt: (datetime)
Timestamp in ISO 8601 format (UTC timezone) to return alerts to. Inclusive.
Example:
2023-03-02T04:05:06
- sort: (startedAt - default: startedAt)
Field to sort by.
Example:
startedAt
- sortOrder: (one of asc, desc - default: desc)
Sort direction.
Example:
asc
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
HTTP status code 200
Alerts are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of alert-types.AlertResponse)
Items: AlertResponse
- id: required(string)
Alert ID.
- alertType: required(string - pattern: ^[a-zA-Z0-9_]{3,50}+$)
Alert type.
- acknowledgement: required(one of UNACKNOWLEDGED, ACKNOWLEDGED)
Alert acknowledgement.
- severityLevel: required(one of INFO, LOW, MEDIUM, HIGH, CRITICAL)
Alert severity level.
- state: required(one of ACTIVE, RESOLVED)
Alert state.
- entityType: required(ENDPOINT)
Type of an entity that alert relates to.
- entityId: required(string)
Entity id that alert relates to.
- activateReason: required(string)
Alert activation reason.
- resolveReason: (string)
Alert resolution reason.
- entityMetadata: (string)
Entity metadata in the moment when it was last time active.
- alertSettingIds: required(array of string)
Alert setting IDs that raised that alert.
- startedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the alert started.
Example:
2023-06-30T12:30:54.540Z
- lastActiveAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the alert was last active.
Example:
2023-06-30T12:30:54.540Z
- id: required(string)
Example:
{
"content": [
{
"id": "0148290c-e8e7-4050-b4c4-5628becb286e",
"alertType": "HIGH_TEMPERATURE",
"acknowledgement": "UNACKNOWLEDGED",
"state": "ACTIVE",
"severityLevel": "LOW",
"entityType": "ENDPOINT",
"entityId": "c0e92a30-5958-4dc2-b275-b383efafa87d",
"activateReason": "High temperature!",
"resolveReason": null,
"entityMetadata": "{\"floor\":1}",
"alertSettingIds": [
"c783e95a-e248-40c6-82c1-7fd27a96e6d7"
],
"startedAt": "2023-10-03T08:28:10.166Z",
"lastActiveAt": "2023-10-03T08:28:10.166Z"
}
],
"totalElements": 1
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Retrieves all alert types.
get /alerts/types
Retrieves all alert types.
- tenant:alert-type:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- entityType: required(one of ENDPOINT, TENANT)
Entity type.
HTTP status code 200
Alert types are successfully retrieved.
Body
Media type: application/json
Type: array of string
Example:
[
"overheat",
"overload",
"no_connection",
"failure"
]
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Deletes alert.
delete /alerts/{alertId}
Deletes alert.
- endpoint:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- alertId: required(string)
Alert ID
Query Parameters
- entityId: required(string)
Entity ID.
- entityType: required(one of ENDPOINT, TENANT)
Entity type.
HTTP status code 204
Alert is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Acknowledges alert.
put /alerts/{alertId}/acknowledgement
Acknowledges alert.
- endpoint:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- alertId: required(string)
Alert ID
Query Parameters
- entityId: required(string)
Entity ID.
- entityType: required(one of ENDPOINT, TENANT)
Entity type.
Body
Media type: application/json
Type: object
Properties- status: required(one of UNACKNOWLEDGED, ACKNOWLEDGED)
Alert status.
- transitionReason: (string)
Alert transition reason.
Example:
{
"status": "ACKNOWLEDGED",
"transitionReason": "Alert acknowledged"
}
HTTP status code 204
Alert is successfully transitioned.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Retrieves alert lifecycle events.
get /alerts/{alertId}/lifecycle-events
Retrieves alert lifecycle events.
- endpoint:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- alertId: required(string)
Alert ID
Query Parameters
- entityId: required(string)
Entity ID.
- entityType: required(one of ENDPOINT, TENANT)
Entity type.
- eventType: (one of SEVERITY_LEVEL_INCREASED, SEVERITY_LEVEL_DECREASED, CREATED, ACTIVE, RESOLVED, ACKNOWLEDGEMENT_TRANSITIONED)
Event type.
Example:
SEVERITY_LEVEL_INCREASED
- sort: (timestamp - default: timestamp)
Field to sort by.
Example:
timestamp
- sortOrder: (one of asc, desc - default: desc)
Sort direction.
Example:
asc
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
HTTP status code 200
Alerts status transition history is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
Event ID.
- alertId: required(string)
Alert ID.
- eventType: required(one of SEVERITY_LEVEL_INCREASED, SEVERITY_LEVEL_DECREASED, CREATED, ACTIVE, RESOLVED, ACKNOWLEDGED, UNACKNOWLEDGED)
Event type.
- metadata: (object)
Additional custom metadata.
- systemMetadata: (object)
Additional system metadata.
- timestamp: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the lifecycle event happened.
Example:
2023-06-30T12:30:54.540Z
Example:
{
"content": [
{
"id": "4c96f636-8b0d-4c7a-a995-33cc91659df7",
"alertId": "0148290c-e8e7-4050-b4c4-5628becb286e",
"eventType": "SEVERITY_LEVEL_INCREASED",
"timestamp": "2023-10-08T03:38:29.248Z",
"systemMetadata": {
"from": "HIGH",
"to": "CRITICAL",
"alertSettingId": "fefc3540-31c5-4b8a-9153-7301dff20e64"
},
"metadata": {
"customKey": "custom value"
}
}
],
"totalElements": 1
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Traces
Operations on traces.
Returns traces.
Deletes traces.
get /traces
Returns traces.
- tenant:rule-execution:trace:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- traceId: (string)
Trace ID.
- entityType: (one of RULE, COMMAND_INVOCATION_ACTION, DATA_SAMPLE_ACTION, METADATA_UPDATE_ACTION, RULE_EXECUTION_ACTION, WEBHOOK_ACTION, RULE_ACTION, TIME_SERIES_ACTION, ALERT_ACTIVATION_ACTION, ALERT_RESOLUTION_ACTION, SEND_EMAIL_ACTION)
Entity type.
- entityId: (string)
Entity ID.
- raisedOnEntityType: (one of ENDPOINT, ON_DEMAND)
Entity type that the trace raised on.
- raisedOnEntityId: (string)
Entity ID that the trace raised on.
- outcome: (one of FAILURE, SUCCESS)
Execution outcome.
- fromCreatedAt: (datetime)
Timestamp in ISO 8601 format (UTC timezone) to filter traces by creation time.
Example:
2023-06-30T12:30:54.540Z
- toCreatedAt: (datetime)
Timestamp in ISO 8601 format (UTC timezone) to filter traces by creation time.
Example:
2023-06-30T12:35:54.540Z
- include: (RELATED)
Include. RELATED - Includes traces with the same trace ID.
Example:
RELATED
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
HTTP status code 200
Traces are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of trace-types.TraceResponse)
Items: TraceResponse
- id: required(string)
Trace record ID. Unique for each trace record.
- traceId: required(string)
Trace ID. Common for the whole rule execution chain including attached to this rule actions and rule itself.
- entityType: required(one of RULE, COMMAND_INVOCATION_ACTION, DATA_SAMPLE_ACTION, METADATA_UPDATE_ACTION, RULE_EXECUTION_ACTION, WEBHOOK_ACTION, RULE_ACTION, TIME_SERIES_ACTION, ALERT_ACTIVATION_ACTION, ALERT_RESOLUTION_ACTION, SEND_EMAIL_ACTION)
Entity type that produced the trace.
- entityId: required(string)
Entity ID that produced the trace.
- outcome: required(one of FAILURE, SUCCESS)
Execution outcome.
- stage: (string)
Stage on which trace was taken in case outcome equal to FAILURE.
- reason: (string)
Outcome reason.
- metadata: (object)
Additional metadata.
- id: required(string)
Example:
{
"content": [
{
"id": "aa54a074-6c87-46cf-a4a1-fbec44dd4ac8",
"traceId": "da7c72c6-d914-4ab8-ac45-e7f6fb6a2c15",
"entityType": "COMMAND_INVOCATION_ACTION",
"entityId": "74",
"outcome": "FAILURE",
"stage": "ENDPOINT_ID_EXPRESSION_EVALUATION",
"reason": "TypeError: Cannot read property 'getChildren' of undefined",
"metadata": {
"endpointIdExpression": "return ctx.endpoin.getChildren().length"
}
},
{
"id": "ea279e04-3f0d-49f5-a3c5-fc46acfbd675",
"traceId": "da7c72c6-d914-4ab8-ac45-e7f6fb6a2c15",
"entityType": "DATA_SAMPLE_ACTION",
"entityId": "91",
"outcome": "SUCCESS"
}
],
"totalElements": 2
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /traces
Deletes traces.
- tenant:rule-execution:trace:delete
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- beforeDate: (datetime)
Date and time in ISO format to delete traces before. If not provided, all traces are deleted.
Example:
2023-06-30T12:30:54.540Z
HTTP status code 204
Traces are successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Alert settings
Operations on alert settings.
Creates a new alert setting.
Returns alert setting list.
post /alert-settings
Creates a new alert setting.
- rule:update
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- name: required(string)
Name.
- description: (string)
Description.
- state: required(one of ENABLED, DISABLED)
State.
- uiMetadata: (string)
UI metadata.
- ruleIds: required(array of string)
Rule IDs.
- actions: required(array of alert-setting-types.AttachedAction)
Attached actions.
Items: AttachedAction
- actionId: required(string)
Action ID.
- actionType: required(one of COMMAND_INVOCATION, METADATA_UPDATE, WEBHOOK, RULE_EXECUTION, DATA_SAMPLE, TIME_SERIES, ALERT_ACTIVATION, ALERT_RESOLUTION, SEND_EMAIL)
Action type.
- actionId: required(string)
- triggers: required(array of alert-setting-types.AttachedTrigger)
Attached triggers.
Items: AttachedTrigger
- triggerId: required(string)
Trigger ID.
- triggerType: required(one of ENDPOINT_METADATA_UPDATED, ENDPOINT_TIME_SERIES_UPDATED, ENDPOINT_DATA_SAMPLES_RECEIVED, ALERT_LIFECYCLE_EVENT, CRON, RULE_EXECUTION_ACTION)
Trigger type.
- triggerId: required(string)
Example:
{
"name": "High temperature alert setting",
"description": "Alert setting for high temperature",
"ruleIds": [
"96fafee4-3238-44ab-93c0-28969d44abf6"
],
"actions": [
{
"actionId": "22",
"actionType": "COMMAND_INVOCATION"
}
],
"triggers": [
{
"triggerId": "27",
"triggerType": "ENDPOINT_METADATA_UPDATED"
}
]
}
HTTP status code 201
Alert setting is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/alert-settings/{alertSettingId}
Example:
https://cloud.kaaiot.com/re/api/v1/alert-settings/024c1cec-edde-4f29-a0f7-4e86aabd43b0
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /alert-settings
Returns alert setting list.
- rule:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- name: (string)
Name. Supports partial match.
Example:
myName
- description: (string)
Description. Supports partial match.
Example:
myDescription
- sort: (one of createdAt, updatedAt - default: createdAt)
Field to sort by.
Example:
updatedAt
- sortOrder: (one of asc, desc - default: desc)
Sort direction.
Example:
asc
HTTP status code 200
Alert settings are successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of alert-setting-types.AlertSettingResponse)
Items: AlertSettingResponse
- id: required(string)
ID.
- name: required(string)
Name.
- description: (string)
Description.
- state: required(one of ENABLED, DISABLED)
State.
- uiMetadata: (string)
UI metadata.
- ruleIds: required(array of string)
Rule IDs.
- actions: required(array of alert-setting-types.AttachedAction)
Attached actions.
Items: AttachedAction
- actionId: required(string)
Action ID.
- actionType: required(one of COMMAND_INVOCATION, METADATA_UPDATE, WEBHOOK, RULE_EXECUTION, DATA_SAMPLE, TIME_SERIES, ALERT_ACTIVATION, ALERT_RESOLUTION, SEND_EMAIL)
Action type.
- actionId: required(string)
- triggers: required(array of alert-setting-types.AttachedTrigger)
Attached triggers.
Items: AttachedTrigger
- triggerId: required(string)
Trigger ID.
- triggerType: required(one of ENDPOINT_METADATA_UPDATED, ENDPOINT_TIME_SERIES_UPDATED, ENDPOINT_DATA_SAMPLES_RECEIVED, ALERT_LIFECYCLE_EVENT, CRON, RULE_EXECUTION_ACTION)
Trigger type.
- triggerId: required(string)
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the record was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the record was last updated.
Example:
2023-06-30T12:30:54.540Z
- id: required(string)
Example:
{
"content": [
{
"id": "75b05695-27ca-46eb-9481-69c199088d99",
"name": "High temperature alert setting",
"description": "Alert setting for high temperature",
"state": "ENABLED",
"ruleIds": [
"96fafee4-3238-44ab-93c0-28969d44abf6"
],
"actions": [
{
"actionId": "22",
"actionType": "COMMAND_INVOCATION"
}
],
"triggers": [
{
"triggerId": "27",
"triggerType": "ENDPOINT_METADATA_UPDATED"
}
],
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
],
"totalElements": 2
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Returns alert setting by ID.
Updates an alert setting.
Deletes alert setting.
get /alert-settings/{alertSettingId}
Returns alert setting by ID.
- rule:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- alertSettingId: required(string)
Alert setting ID
HTTP status code 200
Alert setting is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
ID.
- name: required(string)
Name.
- description: (string)
Description.
- state: required(one of ENABLED, DISABLED)
State.
- uiMetadata: (string)
UI metadata.
- ruleIds: required(array of string)
Rule IDs.
- actions: required(array of alert-setting-types.AttachedAction)
Attached actions.
Items: AttachedAction
- actionId: required(string)
Action ID.
- actionType: required(one of COMMAND_INVOCATION, METADATA_UPDATE, WEBHOOK, RULE_EXECUTION, DATA_SAMPLE, TIME_SERIES, ALERT_ACTIVATION, ALERT_RESOLUTION, SEND_EMAIL)
Action type.
- actionId: required(string)
- triggers: required(array of alert-setting-types.AttachedTrigger)
Attached triggers.
Items: AttachedTrigger
- triggerId: required(string)
Trigger ID.
- triggerType: required(one of ENDPOINT_METADATA_UPDATED, ENDPOINT_TIME_SERIES_UPDATED, ENDPOINT_DATA_SAMPLES_RECEIVED, ALERT_LIFECYCLE_EVENT, CRON, RULE_EXECUTION_ACTION)
Trigger type.
- triggerId: required(string)
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the record was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the record was last updated.
Example:
2023-06-30T12:30:54.540Z
Example:
{
"id": "75b05695-27ca-46eb-9481-69c199088d99",
"name": "High temperature alert setting",
"description": "Alert setting for high temperature",
"state": "ENABLED",
"ruleIds": [
"96fafee4-3238-44ab-93c0-28969d44abf6"
],
"actions": [
{
"actionId": "22",
"actionType": "COMMAND_INVOCATION"
}
],
"triggers": [
{
"triggerId": "27",
"triggerType": "ENDPOINT_METADATA_UPDATED"
}
],
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /alert-settings/{alertSettingId}
Updates an alert setting.
- rule:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- alertSettingId: required(string)
Alert setting ID
Body
Media type: application/json
Type: object
Properties- name: required(string)
Name.
- description: (string)
Description.
- state: required(one of ENABLED, DISABLED)
State.
- uiMetadata: (string)
UI metadata.
- ruleIds: required(array of string)
Rule IDs.
- actions: required(array of alert-setting-types.AttachedAction)
Attached actions.
Items: AttachedAction
- actionId: required(string)
Action ID.
- actionType: required(one of COMMAND_INVOCATION, METADATA_UPDATE, WEBHOOK, RULE_EXECUTION, DATA_SAMPLE, TIME_SERIES, ALERT_ACTIVATION, ALERT_RESOLUTION, SEND_EMAIL)
Action type.
- actionId: required(string)
- triggers: required(array of alert-setting-types.AttachedTrigger)
Attached triggers.
Items: AttachedTrigger
- triggerId: required(string)
Trigger ID.
- triggerType: required(one of ENDPOINT_METADATA_UPDATED, ENDPOINT_TIME_SERIES_UPDATED, ENDPOINT_DATA_SAMPLES_RECEIVED, ALERT_LIFECYCLE_EVENT, CRON, RULE_EXECUTION_ACTION)
Trigger type.
- triggerId: required(string)
Example:
{
"name": "High temperature alert setting",
"description": "Alert setting for high temperature",
"ruleIds": [
"96fafee4-3238-44ab-93c0-28969d44abf6"
],
"actions": [
{
"actionId": "22",
"actionType": "COMMAND_INVOCATION"
}
],
"triggers": [
{
"triggerId": "27",
"triggerType": "ENDPOINT_METADATA_UPDATED"
}
]
}
HTTP status code 204
Alert setting is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /alert-settings/{alertSettingId}
Deletes alert setting.
- rule:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- alertSettingId: required(string)
Alert setting ID
HTTP status code 204
Alert setting is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Secrets
Operations on secrets.
Creates a new item.
Returns list.
post /secrets
Creates a new item.
- tenant:rule-secret:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- key: required(string - pattern: (?![0-9])[A-Z0-9_]+$)
Secret key.
- value: required(string)
Secret value.
Example:
{
"key": "MY_SECRET",
"value": "fxMukYtUvH2MP27WoShdQv9PxlaMIFZd"
}
HTTP status code 201
Item is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/secrets/{secretId}
Example:
https://cloud.kaaiot.com/re/api/v1/secrets/024c1cec-edde-4f29-a0f7-4e86aabd43b0
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /secrets
Returns list.
- rule-secret:read
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- key: (string)
Key. Supports partial match.
Example:
MY_SECRET
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- sort: (one of createdAt, updatedAt - default: createdAt)
Field to sort by.
Example:
updatedAt
- sortOrder: (one of asc, desc - default: desc)
Sort direction.
Example:
asc
HTTP status code 200
List is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of secret-types.ItemResponse)
Items: ItemResponse
- key: required(string - pattern: (?![0-9])[A-Z0-9_]+$)
Secret key.
- value: required(string)
Secret value.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the rule was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the rule was last updated.
Example:
2023-06-30T12:30:54.540Z
- key: required(string - pattern: (?![0-9])[A-Z0-9_]+$)
Example:
{
"content": [
{
"key": "MY_SECRET",
"value": "fxMukYtUvH2MP27WoShdQv9PxlaMIFZd",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
],
"totalElements": 1
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Retrieves item.
Updates item.
Deletes.
get /secrets/{secretId}
Retrieves item.
- rule-secret:read
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- secretId: required(string)
ID
HTTP status code 200
Item is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- key: required(string - pattern: (?![0-9])[A-Z0-9_]+$)
Secret key.
- value: required(string)
Secret value.
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the rule was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the rule was last updated.
Example:
2023-06-30T12:30:54.540Z
Example:
{
"key": "MY_SECRET",
"value": "fxMukYtUvH2MP27WoShdQv9PxlaMIFZd",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /secrets/{secretId}
Updates item.
- rule-secret:update
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- secretId: required(string)
ID
Body
Media type: application/json
Type: object
Properties- key: required(string - pattern: (?![0-9])[A-Z0-9_]+$)
Secret key.
- value: required(string)
Secret value.
Example:
{
"key": "MY_SECRET",
"value": "fxMukYtUvH2MP27WoShdQv9PxlaMIFZd"
}
HTTP status code 204
Item is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /secrets/{secretId}
Deletes.
- rule-secret:delete
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- secretId: required(string)
ID
HTTP status code 204
Item is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Snippets
Operations on JavaScript snippets.
Creates a new item.
Returns list.
post /snippets
Creates a new item.
- tenant:rule:create
RE supports OAuth 2.0 for authenticating all API requests.
Body
Media type: application/json
Type: object
Properties- id: required(string)
ID.
- name: required(string - pattern: ^[a-zA-Z]+$)
Snippet name. You will use snippet name in the
require
function:const greeter = require('./snippets/greeter')
- description: (string)
Description.
- expression: required(string)
JavaScript expression. Must have the
module.exports
Example:
{
"name": "greeter",
"description": "Greeting snippet that says 'Hi!'",
"expression": "function greet() {return 'Hi!'} module.exports = {greet};"
}
HTTP status code 201
Item is successfully created.
Headers
- Location: required(string)
URI in format
{schema}://{host}/re/api/v1/snippets/{snippetId}
Example:
https://cloud.kaaiot.com/re/api/v1/snippets/greeter
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 403
Principal does not have sufficient permissions to perform this operation.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
get /snippets
Returns list.
- tenant:rule:create
RE supports OAuth 2.0 for authenticating all API requests.
Query Parameters
- page: (number - default: 0)
Page number.
Example:
0
- size: (number - default: 100)
Page size.
Example:
10
- sort: (one of createdAt, updatedAt - default: createdAt)
Field to sort by.
Example:
updatedAt
- sortOrder: (one of asc, desc - default: desc)
Sort direction.
Example:
asc
- name: (string)
Name. Supports partial match.
Example:
myName
- description: (string)
Description. Supports partial match.
Example:
myDescription
HTTP status code 200
List is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- totalElements: required(integer)
Total number of elements available for retrieval.
- content: required(array of snippet-types.ItemResponse)
Items: ItemResponse
- id: required(string)
ID.
- name: required(string - pattern: ^[a-zA-Z]+$)
Snippet name. You will use snippet name in the
require
function:const greeter = require('./snippets/greeter')
- description: (string)
Description.
- expression: required(string)
JavaScript expression. Must have the
module.exports
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the rule was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the rule was last updated.
Example:
2023-06-30T12:30:54.540Z
- id: required(string)
Example:
{
"content": [
{
"id": "d80fc8a0-c51e-4d6e-adbf-092174a29d3a",
"name": "greeter",
"description": "Greeting snippet that says 'Hi!'",
"expression": "function greet() {return 'Hi!'} module.exports = {greet};",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
],
"totalElements": 1
}
HTTP status code 401
Request is not authenticated.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
Retrieves item.
Updates item.
Deletes.
get /snippets/{snippetId}
Retrieves item.
- tenant:rule:create
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- snippetId: required(string)
ID
Example:
greeter
HTTP status code 200
Item is successfully retrieved.
Body
Media type: application/json
Type: object
Properties- id: required(string)
ID.
- name: required(string - pattern: ^[a-zA-Z]+$)
Snippet name. You will use snippet name in the
require
function:const greeter = require('./snippets/greeter')
- description: (string)
Description.
- expression: required(string)
JavaScript expression. Must have the
module.exports
- createdAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the rule was created.
Example:
2023-06-30T12:30:54.540Z
- updatedAt: required(datetime)
Timestamp in ISO 8601 format (UTC timezone) showing when the rule was last updated.
Example:
2023-06-30T12:30:54.540Z
Example:
{
"id": "d80fc8a0-c51e-4d6e-adbf-092174a29d3a",
"name": "greeter",
"description": "Greeting snippet that says 'Hi!'",
"expression": "function greet() {return 'Hi!'} module.exports = {greet};",
"createdAt": "2023-06-30T12:30:54.540Z",
"updatedAt": "2023-06-30T12:30:54.541Z"
}
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
put /snippets/{snippetId}
Updates item.
- tenant:rule:create
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- snippetId: required(string)
ID
Example:
greeter
Body
Media type: application/json
Type: object
Properties- id: required(string)
ID.
- name: required(string - pattern: ^[a-zA-Z]+$)
Snippet name. You will use snippet name in the
require
function:const greeter = require('./snippets/greeter')
- description: (string)
Description.
- expression: required(string)
JavaScript expression. Must have the
module.exports
Example:
{
"name": "greeter",
"description": "Greeting snippet that says 'Hi!'",
"expression": "function greet() {return 'Hi!'} module.exports = {greet};"
}
HTTP status code 204
Item is successfully updated.
HTTP status code 400
Invalid request.
Body
Media type: application/json
Type: object
Properties- message: required(string)
Detailed error description.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.
delete /snippets/{snippetId}
Deletes.
- tenant:rule:create
RE supports OAuth 2.0 for authenticating all API requests.
URI Parameters
- snippetId: required(string)
ID
Example:
greeter
HTTP status code 204
Item is successfully deleted.
HTTP status code 401
Request is not authenticated.
HTTP status code 404
Resource not found or querying user is not authorized for it.
Secured by oauth_2_0
Headers
- Authorization: (string)
Used to send a valid OAuth 2 access token. Example: "Authorization: Bearer 'access_token'" where 'access_token' must be replaced by a valid OAuth access token. This header is needed only if API authentication is enabled for the service.