# EduchatApi.FileApi

All URIs are relative to *https://api.edu.chat*

Method | HTTP request | Description
------------- | ------------- | -------------
[**fileCreate**](FileApi.md#fileCreate) | **POST** /v1/file/ | No documentation beyond REST Standards;
[**filePartialUpdate**](FileApi.md#filePartialUpdate) | **PATCH** /v1/file/{id}/ | No documentation beyond REST Standards;


<a name="fileCreate"></a>
# **fileCreate**
> InlineResponse2011 fileCreate(name, opts)

No documentation beyond REST Standards;

No documentation beyond REST Standards;

### Example
```javascript
var EduchatApi = require('educhat_api');

var apiInstance = new EduchatApi.FileApi();

var name = "name_example"; // String | 

var opts = { 
  'upload': "upload_example" // String | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.fileCreate(name, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **name** | **String**|  | 
 **upload** | **String**|  | [optional] 

### Return type

[**InlineResponse2011**](InlineResponse2011.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: Not defined

<a name="filePartialUpdate"></a>
# **filePartialUpdate**
> InlineResponse2011 filePartialUpdate(id, opts)

No documentation beyond REST Standards;

No documentation beyond REST Standards;

### Example
```javascript
var EduchatApi = require('educhat_api');

var apiInstance = new EduchatApi.FileApi();

var id = "id_example"; // String | 

var opts = { 
  'data': new EduchatApi.Data6() // Data6 | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.filePartialUpdate(id, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **data** | [**Data6**](Data6.md)|  | [optional] 

### Return type

[**InlineResponse2011**](InlineResponse2011.md)

### Authorization

No authorization required

### HTTP request headers

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

