# \DraftApi

All URIs are relative to */api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**create_draft**](DraftApi.md#create_draft) | **POST** /w/{workspace}/drafts/create | create draft
[**delete_draft**](DraftApi.md#delete_draft) | **DELETE** /w/{workspace}/drafts/delete/{kind}/{path} | delete draft



## create_draft

> String create_draft(workspace, create_draft_request)
create draft

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**create_draft_request** | [**CreateDraftRequest**](CreateDraftRequest.md) |  | [required] |

### Return type

**String**

### Authorization

[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

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

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


## delete_draft

> String delete_draft(workspace, kind, path)
delete draft

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**kind** | **String** |  | [required] |
**path** | **String** |  | [required] |

### Return type

**String**

### Authorization

[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: text/plain

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

