# AgilegravityagileAiTrainerserverClient.ProjectsApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**createProject**](ProjectsApi.md#createProject) | **POST** /api/v1/accounts/{accountId}/projects | 
[**deleteProject**](ProjectsApi.md#deleteProject) | **DELETE** /api/v1/accounts/{accountId}/projects/{projectId} | 
[**getProject**](ProjectsApi.md#getProject) | **GET** /api/v1/accounts/{accountId}/projects/{projectId} | 
[**getProjects**](ProjectsApi.md#getProjects) | **GET** /api/v1/accounts/{accountId}/projects | 
[**updateProject**](ProjectsApi.md#updateProject) | **PUT** /api/v1/accounts/{accountId}/projects/{projectId} | 

<a name="createProject"></a>
# **createProject**
> Project createProject(bodyaccountId)



create the Project

### 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.ProjectsApi();
let body = new AgilegravityagileAiTrainerserverClient.Project(); // Project | 
let accountId = "accountId_example"; // String | accountID

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

```

### Parameters

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

### Return type

[**Project**](Project.md)

### Authorization

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

### HTTP request headers

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

<a name="deleteProject"></a>
# **deleteProject**
> Project deleteProject(accountId, projectId)



delete a Project for a 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.ProjectsApi();
let accountId = "accountId_example"; // String | accountId
let projectId = "projectId_example"; // String | projectId

apiInstance.deleteProject(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

[**Project**](Project.md)

### Authorization

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

### HTTP request headers

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

<a name="getProject"></a>
# **getProject**
> Project getProject(accountId, projectId)



get a Project  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.ProjectsApi();
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId

apiInstance.getProject(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

[**Project**](Project.md)

### Authorization

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

### HTTP request headers

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

<a name="getProjects"></a>
# **getProjects**
> [Project] getProjects(accountId)



get a Project list by accountId

### 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.ProjectsApi();
let accountId = "accountId_example"; // String | accountID

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

```

### Parameters

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

### Return type

[**[Project]**](Project.md)

### Authorization

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

### HTTP request headers

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

<a name="updateProject"></a>
# **updateProject**
> Project updateProject(bodyaccountIdprojectId)



update a Project for a 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.ProjectsApi();
let body = new AgilegravityagileAiTrainerserverClient.Project(); // Project | 
let accountId = "accountId_example"; // String | accountId
let projectId = "projectId_example"; // String | projectId

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

```

### Parameters

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

### Return type

[**Project**](Project.md)

### Authorization

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

### HTTP request headers

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

