# AgilegravityagileAiTrainerserverClient.ImageApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**uploadImage**](ImageApi.md#uploadImage) | **POST** /api/v1/image/upload | 

<a name="uploadImage"></a>
# **uploadImage**
> Image uploadImage()



upload a image and returns the image url

### 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.ImageApi();

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

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **image** | **Blob**|  | [optional] 

### Return type

[**Image**](Image.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: application/json

