# \UploadsApi

All URIs are relative to *http://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**cancel**](UploadsApi.md#cancel) | **DELETE** /api/v1/uploads/{session_id} | 
[**complete**](UploadsApi.md#complete) | **PUT** /api/v1/uploads/{session_id}/complete | 
[**create_session**](UploadsApi.md#create_session) | **POST** /api/v1/uploads | 
[**get_session_status**](UploadsApi.md#get_session_status) | **GET** /api/v1/uploads/{session_id} | 
[**upload_chunk**](UploadsApi.md#upload_chunk) | **PATCH** /api/v1/uploads/{session_id} | 



## cancel

> cancel(session_id)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**session_id** | **uuid::Uuid** | Upload session ID | [required] |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## complete

> models::CompleteResponse complete(session_id)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**session_id** | **uuid::Uuid** | Upload session ID | [required] |

### Return type

[**models::CompleteResponse**](CompleteResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## create_session

> models::CreateSessionResponse create_session(create_session_request)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**create_session_request** | [**CreateSessionRequest**](CreateSessionRequest.md) |  | [required] |

### Return type

[**models::CreateSessionResponse**](CreateSessionResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_session_status

> models::SessionStatusResponse get_session_status(session_id)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**session_id** | **uuid::Uuid** | Upload session ID | [required] |

### Return type

[**models::SessionStatusResponse**](SessionStatusResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## upload_chunk

> models::ChunkResponse upload_chunk(session_id)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**session_id** | **uuid::Uuid** | Upload session ID | [required] |

### Return type

[**models::ChunkResponse**](ChunkResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

