# AgilegravityagileAiTrainerserverClient.ChannelsApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**createChannel**](ChannelsApi.md#createChannel) | **POST** /api/v1/accounts/{accountId}/projects/{projectId}/channels | 
[**deleteChannel**](ChannelsApi.md#deleteChannel) | **DELETE** /api/v1/accounts/{accountId}/projects/{projectId}/channels/{channelId} | 
[**getChannel**](ChannelsApi.md#getChannel) | **GET** /api/v1/accounts/{accountId}/projects/{projectId}/channels/{channelId} | 
[**getChannels**](ChannelsApi.md#getChannels) | **GET** /api/v1/accounts/{accountId}/projects/{projectId}/channels | 
[**updateChannel**](ChannelsApi.md#updateChannel) | **PUT** /api/v1/accounts/{accountId}/projects/{projectId}/channels/{channelId} | 

<a name="createChannel"></a>
# **createChannel**
> Channel createChannel(bodyaccountIdprojectId)



create the Channel

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.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';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.ChannelsApi();
let body = new AgilegravityagileAiTrainerserverClient.Channel(); // Channel | 
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId

apiInstance.createChannel(bodyaccountIdprojectId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**Channel**](Channel.md)|  | 
 **accountId** | **String**| accountID | 
 **projectId** | **String**| projectId | 

### Return type

[**Channel**](Channel.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="deleteChannel"></a>
# **deleteChannel**
> Channel deleteChannel(accountId, projectId, channelId)



delete a Channel for a accountId projectid channelId

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.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';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.ChannelsApi();
let accountId = "accountId_example"; // String | accountId
let projectId = "projectId_example"; // String | projectId
let channelId = "channelId_example"; // String | channelId

apiInstance.deleteChannel(accountId, projectId, channelId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **accountId** | **String**| accountId | 
 **projectId** | **String**| projectId | 
 **channelId** | **String**| channelId | 

### Return type

[**Channel**](Channel.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="getChannel"></a>
# **getChannel**
> Channel getChannel(accountId, projectId, channelId)



get a Channel  by accountId projectId channelId

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.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';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.ChannelsApi();
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId
let channelId = "channelId_example"; // String | channelId

apiInstance.getChannel(accountId, projectId, channelId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **accountId** | **String**| accountID | 
 **projectId** | **String**| projectId | 
 **channelId** | **String**| channelId | 

### Return type

[**Channel**](Channel.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="getChannels"></a>
# **getChannels**
> [Channel] getChannels(accountId, projectId)



get a Channel list by accountId projectid

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.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';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.ChannelsApi();
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId

apiInstance.getChannels(accountId, projectId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **accountId** | **String**| accountID | 
 **projectId** | **String**| projectId | 

### Return type

[**[Channel]**](Channel.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="updateChannel"></a>
# **updateChannel**
> Channel updateChannel(bodyaccountIdprojectIdchannelId)



update a Chánnel for a accountId projectId channelId

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.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';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.ChannelsApi();
let body = new AgilegravityagileAiTrainerserverClient.Channel(); // Channel | 
let accountId = "accountId_example"; // String | accountId
let projectId = "projectId_example"; // String | projectId
let channelId = "channelId_example"; // String | channelId

apiInstance.updateChannel(bodyaccountIdprojectIdchannelId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**Channel**](Channel.md)|  | 
 **accountId** | **String**| accountId | 
 **projectId** | **String**| projectId | 
 **channelId** | **String**| channelId | 

### Return type

[**Channel**](Channel.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

