chatkitty
Version:
OpenAPI client for chatkitty
235 lines (155 loc) • 6.83 kB
Markdown
All URIs are relative to *https://api.chatkitty.com*
|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**importChannelMembers**](
|[**importChannels**](
|[**importMessages**](
|[**importUsers**](
> ApplicationJobResource importChannelMembers()
Batch imports channel members from a JSON array file
### Example
```typescript
import {
ImportsApi,
Configuration
} from 'chatkitty';
const configuration = new Configuration();
const apiInstance = new ImportsApi(configuration);
let id: number; // (default to undefined)
let file: File; //JSON array file with user references to be added as members (default to undefined)
const { status, data } = await apiInstance.importChannelMembers(
id,
file
);
```
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | | defaults to undefined|
| **file** | [**File**] | JSON array file with user references to be added as members | defaults to undefined|
**ApplicationJobResource**
[](../README.md
- **Content-Type**: multipart/form-data
- **Accept**: application/json, application/vnd.chatkitty+json, application/vnd.chatkitty.v1+json, application/vnd.hal+json, application/hal+json
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**404** | Resource not found | - |
|**403** | Access is denied | - |
|**400** | Client error | - |
|**401** | Unauthorized: Full authentication is required to access this resource | - |
|**202** | Import job accepted | - |
[[Back to top]](
> ApplicationJobResource importChannels()
Batch imports channels from a JSON array file
### Example
```typescript
import {
ImportsApi,
Configuration
} from 'chatkitty';
const configuration = new Configuration();
const apiInstance = new ImportsApi(configuration);
let file: File; //JSON array file with channels (default to undefined)
const { status, data } = await apiInstance.importChannels(
file
);
```
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **file** | [**File**] | JSON array file with channels | defaults to undefined|
**ApplicationJobResource**
[](../README.md
- **Content-Type**: multipart/form-data
- **Accept**: application/json, application/vnd.chatkitty+json, application/vnd.chatkitty.v1+json, application/vnd.hal+json, application/hal+json
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**404** | Resource not found | - |
|**403** | Access is denied | - |
|**400** | Client error | - |
|**401** | Unauthorized: Full authentication is required to access this resource | - |
|**202** | Import job accepted | - |
[[Back to top]](
> ApplicationJobResource importMessages()
Batch imports messages from a JSON array file
### Example
```typescript
import {
ImportsApi,
Configuration
} from 'chatkitty';
const configuration = new Configuration();
const apiInstance = new ImportsApi(configuration);
let file: File; //JSON array file with messages (default to undefined)
const { status, data } = await apiInstance.importMessages(
file
);
```
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **file** | [**File**] | JSON array file with messages | defaults to undefined|
**ApplicationJobResource**
[](../README.md
- **Content-Type**: multipart/form-data
- **Accept**: application/json, application/vnd.chatkitty+json, application/vnd.chatkitty.v1+json, application/vnd.hal+json, application/hal+json
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**404** | Resource not found | - |
|**403** | Access is denied | - |
|**400** | Client error | - |
|**401** | Unauthorized: Full authentication is required to access this resource | - |
|**202** | Import job accepted | - |
[[Back to top]](
> ApplicationJobResource importUsers()
Batch imports users from a JSON array file
### Example
```typescript
import {
ImportsApi,
Configuration
} from 'chatkitty';
const configuration = new Configuration();
const apiInstance = new ImportsApi(configuration);
let file: File; //JSON array file with users (default to undefined)
const { status, data } = await apiInstance.importUsers(
file
);
```
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **file** | [**File**] | JSON array file with users | defaults to undefined|
**ApplicationJobResource**
[](../README.md
- **Content-Type**: multipart/form-data
- **Accept**: application/json, application/vnd.chatkitty+json, application/vnd.chatkitty.v1+json, application/vnd.hal+json, application/hal+json
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**404** | Resource not found | - |
|**403** | Access is denied | - |
|**400** | Client error | - |
|**401** | Unauthorized: Full authentication is required to access this resource | - |
|**202** | Import job accepted | - |
[[Back to top]](