All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
tasksCreateTask | POST /api/tasks/v1/Tasks | Create a new task |
tasksDeleteTask | DELETE /api/tasks/v1/Tasks/{taskId} | Delete a task from a storage |
tasksGet | GET /api/tasks/v1/Tasks/{taskId} | Get a task by a specified id |
tasksGetList | GET /api/tasks/v1/Tasks | Get tasks list |
tasksGetPermissions | GET /api/tasks/v1/Tasks/{id}/permissions | Get all Task permissions |
tasksRenameTask | PUT /api/tasks/v1/Tasks/{taskId}/rename | Rename a task |
tasksRunTask | POST /api/tasks/v1/Tasks/run | Run a task from request body |
tasksRunTaskById | POST /api/tasks/v1/Tasks/{taskId}/run | Run a task by id |
tasksUpdatePermissions | POST /api/tasks/v1/Tasks/{id}/permissions | Update permissions |
tasksUpdateTask | PUT /api/tasks/v1/Tasks/{taskId} | Update a task |
TaskBaseVM tasksCreateTask(opts)
Create a new task
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.TasksApi();
let opts = {
'createTaskBaseVM': new FastreportCloudSdk.CreateTaskBaseVM() // CreateTaskBaseVM | task's view model. You have to specify task type (type: \"ExportTemplate\")
};
apiInstance.tasksCreateTask(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
createTaskBaseVM | CreateTaskBaseVM | task's view model. You have to specify task type (type: "ExportTemplate") | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
tasksDeleteTask(taskId)
Delete a task from a storage
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.TasksApi();
let taskId = "taskId_example"; // String | deleting task id
apiInstance.tasksDeleteTask(taskId).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
taskId | String | deleting task id |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
TaskBaseVM tasksGet(taskId)
Get a task by a specified id
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.TasksApi();
let taskId = "taskId_example"; // String | a task id
apiInstance.tasksGet(taskId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
taskId | String | a task id |
- Content-Type: Not defined
- Accept: application/json
TasksVM tasksGetList(opts)
Get tasks list
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.TasksApi();
let opts = {
'skip': 0, // Number | number of tasks, that have to be skipped
'take': 10, // Number | number of tasks, that have to be returned
'subscriptionId': "subscriptionId_example", // String | subscription id
'searchPattern': "''" // String |
};
apiInstance.tasksGetList(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
skip | Number | number of tasks, that have to be skipped | [optional] [default to 0] |
take | Number | number of tasks, that have to be returned | [optional] [default to 10] |
subscriptionId | String | subscription id | [optional] |
searchPattern | String | [optional] [default to ''] |
- Content-Type: Not defined
- Accept: application/json
TaskPermissionsVM tasksGetPermissions(id)
Get all Task permissions
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.TasksApi();
let id = "id_example"; // String | task id
apiInstance.tasksGetPermissions(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | task id |
- Content-Type: Not defined
- Accept: application/json
TaskBaseVM tasksRenameTask(taskId, opts)
Rename a task
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.TasksApi();
let taskId = "taskId_example"; // String | renaming task id
let opts = {
'newName': "newName_example" // String | task's new Name
};
apiInstance.tasksRenameTask(taskId, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
taskId | String | renaming task id | |
newName | String | task's new Name | [optional] |
- Content-Type: Not defined
- Accept: application/json
tasksRunTask(opts)
Run a task from request body
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.TasksApi();
let opts = {
'runTaskBaseVM': new FastreportCloudSdk.RunTaskBaseVM() // RunTaskBaseVM | task's view model
};
apiInstance.tasksRunTask(opts).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
runTaskBaseVM | RunTaskBaseVM | task's view model | [optional] |
null (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
tasksRunTaskById(taskId)
Run a task by id
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.TasksApi();
let taskId = "taskId_example"; // String | task id
apiInstance.tasksRunTaskById(taskId).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
taskId | String | task id |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
tasksUpdatePermissions(id, opts)
Update permissions
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.TasksApi();
let id = "id_example"; // String | task id
let opts = {
'updateTaskPermissionsVM': new FastreportCloudSdk.UpdateTaskPermissionsVM() // UpdateTaskPermissionsVM | new permissions
};
apiInstance.tasksUpdatePermissions(id, opts).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | task id | |
updateTaskPermissionsVM | UpdateTaskPermissionsVM | new permissions | [optional] |
null (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
TaskBaseVM tasksUpdateTask(taskId, opts)
Update a task
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.TasksApi();
let taskId = "taskId_example"; // String | updating task id
let opts = {
'updateTaskBaseVM': new FastreportCloudSdk.UpdateTaskBaseVM() // UpdateTaskBaseVM | task's view model. You have to specify task type (type: \"ExportTemplate\")
};
apiInstance.tasksUpdateTask(taskId, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
taskId | String | updating task id | |
updateTaskBaseVM | UpdateTaskBaseVM | task's view model. You have to specify task type (type: "ExportTemplate") | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json