# ProcessDefinitionsApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**upload**](#upload) | **PUT** /processdefinitions | Upload a BPMN process definition|

# **upload**
> upload()

Uploads a BPMN process definition in XML format

### Example

```typescript
import {
    ProcessDefinitionsApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new ProcessDefinitionsApi(configuration);

let body: string; // (optional)

const { status, data } = await apiInstance.upload(
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **string**|  | |


### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/vnd.mambu.v2+json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | Process definition uploaded successfully |  -  |
|**400** | A validation error occurred |  -  |
|**401** | Unauthorized |  -  |
|**403** | Forbidden |  -  |

[[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)

