# PublishApp.CreateApi

All URIs are relative to *https://doraemon.mammoth.io/api/v1/*

Method | HTTP request | Description
------------- | ------------- | -------------
[**createReport**](CreateApi.md#createReport) | **POST** /reports | Create a new report


<a name="createReport"></a>
# **createReport**
> ReportCreated createReport(body, X_ACCOUNT_ID)

Create a new report



### Example
```javascript
var PublishApp = require('publish_app');
var defaultClient = PublishApp.ApiClient.instance;

// Configure API key authorization: api_key
var 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';

var apiInstance = new PublishApp.CreateApi();

var body = new PublishApp.CreateReport(); // CreateReport | Info about workspace and report name.

var X_ACCOUNT_ID = 8.14; // Number | account id


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**CreateReport**](CreateReport.md)| Info about workspace and report name. | 
 **X_ACCOUNT_ID** | **Number**| account id | 

### Return type

[**ReportCreated**](ReportCreated.md)

### Authorization

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

### HTTP request headers

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

