All URIs are relative to /
| Method | HTTP request | Description |
|---|---|---|
| createLogseneApplication | POST /logsene-reports/api/v3/apps | Create Logs App |
AppsResponse createLogseneApplication(body)
Create Logs App
import {SematextApiClientJavascript} from 'sematext-api-client-javascript';
let defaultClient = SematextApiClientJavascript.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new SematextApiClientJavascript.LogsAppApi();
let body = new SematextApiClientJavascript.CreateAppInfo(); // CreateAppInfo | Details of the application to be created
apiInstance.createLogseneApplication(body).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| body | CreateAppInfo | Details of the application to be created |
- Content-Type: application/json
- Accept: application/json