# Zaun.DeploymentApi

All URIs are relative to *https://virtserver.swaggerhub.com/kata.ai/zaun-q2/1.0.0*

Method | HTTP request | Description
------------- | ------------- | -------------
[**deploymentsDeploymentIdRollbackPost**](DeploymentApi.md#deploymentsDeploymentIdRollbackPost) | **POST** /deployments/{deploymentId}/rollback | rollback deployment
[**projectsProjectIdDeploymentVersionsGet**](DeploymentApi.md#projectsProjectIdDeploymentVersionsGet) | **GET** /projects/{projectId}/deployment/versions | Get all deployment versions
[**projectsProjectIdDeploymentVersionsPost**](DeploymentApi.md#projectsProjectIdDeploymentVersionsPost) | **POST** /projects/{projectId}/deployment/versions | Create a deployment
[**projectsProjectIdDeploymentsVersionsVersionGet**](DeploymentApi.md#projectsProjectIdDeploymentsVersionsVersionGet) | **GET** /projects/{projectId}/deployments/versions/{version} | Get all deployment versions
[**projectsProjectIdEnvironmentsEnvironmentIdChannelsChannelIdDelete**](DeploymentApi.md#projectsProjectIdEnvironmentsEnvironmentIdChannelsChannelIdDelete) | **DELETE** /projects/{projectId}/environments/{environmentId}/channels/{channelId} | Delete an EnvironmentChannel
[**projectsProjectIdEnvironmentsEnvironmentIdChannelsChannelIdGet**](DeploymentApi.md#projectsProjectIdEnvironmentsEnvironmentIdChannelsChannelIdGet) | **GET** /projects/{projectId}/environments/{environmentId}/channels/{channelId} | Get single EnvironmentChannel by ID
[**projectsProjectIdEnvironmentsEnvironmentIdChannelsChannelIdPut**](DeploymentApi.md#projectsProjectIdEnvironmentsEnvironmentIdChannelsChannelIdPut) | **PUT** /projects/{projectId}/environments/{environmentId}/channels/{channelId} | Update the EnvironmentChannel
[**projectsProjectIdEnvironmentsEnvironmentIdChannelsGet**](DeploymentApi.md#projectsProjectIdEnvironmentsEnvironmentIdChannelsGet) | **GET** /projects/{projectId}/environments/{environmentId}/channels | Get all EnvironmentChannels
[**projectsProjectIdEnvironmentsEnvironmentIdChannelsPost**](DeploymentApi.md#projectsProjectIdEnvironmentsEnvironmentIdChannelsPost) | **POST** /projects/{projectId}/environments/{environmentId}/channels | create an EnvironmentChannel
[**projectsProjectIdEnvironmentsEnvironmentIdDelete**](DeploymentApi.md#projectsProjectIdEnvironmentsEnvironmentIdDelete) | **DELETE** /projects/{projectId}/environments/{environmentId} | Delete an environment
[**projectsProjectIdEnvironmentsEnvironmentIdGet**](DeploymentApi.md#projectsProjectIdEnvironmentsEnvironmentIdGet) | **GET** /projects/{projectId}/environments/{environmentId} | Get single environment by ID
[**projectsProjectIdEnvironmentsEnvironmentIdPut**](DeploymentApi.md#projectsProjectIdEnvironmentsEnvironmentIdPut) | **PUT** /projects/{projectId}/environments/{environmentId} | Update the environment
[**projectsProjectIdEnvironmentsGet**](DeploymentApi.md#projectsProjectIdEnvironmentsGet) | **GET** /projects/{projectId}/environments | Get all environments
[**projectsProjectIdEnvironmentsPost**](DeploymentApi.md#projectsProjectIdEnvironmentsPost) | **POST** /projects/{projectId}/environments | create an environment


<a name="deploymentsDeploymentIdRollbackPost"></a>
# **deploymentsDeploymentIdRollbackPost**
> Object deploymentsDeploymentIdRollbackPost(deploymentId, body)

rollback deployment

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.DeploymentApi();

var deploymentId = "deploymentId_example"; // String | ID of deployment to return

var body = new Zaun.Body4(); // Body4 | Data object


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **deploymentId** | **String**| ID of deployment to return | 
 **body** | [**Body4**](Body4.md)| Data object | 

### Return type

**Object**

### Authorization

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

### HTTP request headers

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

<a name="projectsProjectIdDeploymentVersionsGet"></a>
# **projectsProjectIdDeploymentVersionsGet**
> InlineResponse20017 projectsProjectIdDeploymentVersionsGet(projectId, opts)

Get all deployment versions

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.DeploymentApi();

var projectId = "projectId_example"; // String | ID of deployment to return

var opts = { 
  'limit': 56, // Number | Limit returned deployments in a page
  'page': 56 // Number | A number representing page
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| ID of deployment to return | 
 **limit** | **Number**| Limit returned deployments in a page | [optional] 
 **page** | **Number**| A number representing page | [optional] 

### Return type

[**InlineResponse20017**](InlineResponse20017.md)

### Authorization

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

### HTTP request headers

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

<a name="projectsProjectIdDeploymentVersionsPost"></a>
# **projectsProjectIdDeploymentVersionsPost**
> Deployment projectsProjectIdDeploymentVersionsPost(body, projectId)

Create a deployment

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.DeploymentApi();

var body = new Zaun.Deployment(); // Deployment | Deployment model

var projectId = "projectId_example"; // String | ID of deployment to return


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**Deployment**](Deployment.md)| Deployment model | 
 **projectId** | **String**| ID of deployment to return | 

### Return type

[**Deployment**](Deployment.md)

### Authorization

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

### HTTP request headers

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

<a name="projectsProjectIdDeploymentsVersionsVersionGet"></a>
# **projectsProjectIdDeploymentsVersionsVersionGet**
> InlineResponse20017 projectsProjectIdDeploymentsVersionsVersionGet(projectId, version, opts)

Get all deployment versions

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.DeploymentApi();

var projectId = "projectId_example"; // String | ID of project to return

var version = "version_example"; // String | version of deployment to return

var opts = { 
  'limit': 56, // Number | Limit returned deployments in a page
  'page': 56 // Number | A number representing page
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| ID of project to return | 
 **version** | **String**| version of deployment to return | 
 **limit** | **Number**| Limit returned deployments in a page | [optional] 
 **page** | **Number**| A number representing page | [optional] 

### Return type

[**InlineResponse20017**](InlineResponse20017.md)

### Authorization

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

### HTTP request headers

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

<a name="projectsProjectIdEnvironmentsEnvironmentIdChannelsChannelIdDelete"></a>
# **projectsProjectIdEnvironmentsEnvironmentIdChannelsChannelIdDelete**
> 'Boolean' projectsProjectIdEnvironmentsEnvironmentIdChannelsChannelIdDelete(projectId, environmentId, channelId)

Delete an EnvironmentChannel

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.DeploymentApi();

var projectId = "projectId_example"; // String | ID of deployment to return

var environmentId = "environmentId_example"; // String | ID of environment to return

var channelId = "channelId_example"; // String | ID of channel to return


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.projectsProjectIdEnvironmentsEnvironmentIdChannelsChannelIdDelete(projectId, environmentId, channelId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| ID of deployment to return | 
 **environmentId** | **String**| ID of environment to return | 
 **channelId** | **String**| ID of channel to return | 

### Return type

**'Boolean'**

### Authorization

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

### HTTP request headers

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

<a name="projectsProjectIdEnvironmentsEnvironmentIdChannelsChannelIdGet"></a>
# **projectsProjectIdEnvironmentsEnvironmentIdChannelsChannelIdGet**
> EnvironmentChannel projectsProjectIdEnvironmentsEnvironmentIdChannelsChannelIdGet(projectId, environmentId, channelId)

Get single EnvironmentChannel by ID

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.DeploymentApi();

var projectId = "projectId_example"; // String | ID of deployment to return

var environmentId = "environmentId_example"; // String | ID of environment to return

var channelId = "channelId_example"; // String | ID of channel to return


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.projectsProjectIdEnvironmentsEnvironmentIdChannelsChannelIdGet(projectId, environmentId, channelId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| ID of deployment to return | 
 **environmentId** | **String**| ID of environment to return | 
 **channelId** | **String**| ID of channel to return | 

### Return type

[**EnvironmentChannel**](EnvironmentChannel.md)

### Authorization

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

### HTTP request headers

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

<a name="projectsProjectIdEnvironmentsEnvironmentIdChannelsChannelIdPut"></a>
# **projectsProjectIdEnvironmentsEnvironmentIdChannelsChannelIdPut**
> EnvironmentChannel projectsProjectIdEnvironmentsEnvironmentIdChannelsChannelIdPut(projectId, environmentId, channelId, body)

Update the EnvironmentChannel

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.DeploymentApi();

var projectId = "projectId_example"; // String | ID of deployment to return

var environmentId = "environmentId_example"; // String | ID of environment to return

var channelId = "channelId_example"; // String | ID of channel to return

var body = new Zaun.EnvironmentChannel(); // EnvironmentChannel | EnvironmentChannel model


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| ID of deployment to return | 
 **environmentId** | **String**| ID of environment to return | 
 **channelId** | **String**| ID of channel to return | 
 **body** | [**EnvironmentChannel**](EnvironmentChannel.md)| EnvironmentChannel model | 

### Return type

[**EnvironmentChannel**](EnvironmentChannel.md)

### Authorization

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

### HTTP request headers

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

<a name="projectsProjectIdEnvironmentsEnvironmentIdChannelsGet"></a>
# **projectsProjectIdEnvironmentsEnvironmentIdChannelsGet**
> InlineResponse20019 projectsProjectIdEnvironmentsEnvironmentIdChannelsGet(projectId, environmentId, opts)

Get all EnvironmentChannels

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.DeploymentApi();

var projectId = "projectId_example"; // String | ID of deployment to return

var environmentId = "environmentId_example"; // String | ID of environment to return

var opts = { 
  'limit': 56, // Number | Limit returned deployments in a page
  'page': 56 // Number | A number representing page
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| ID of deployment to return | 
 **environmentId** | **String**| ID of environment to return | 
 **limit** | **Number**| Limit returned deployments in a page | [optional] 
 **page** | **Number**| A number representing page | [optional] 

### Return type

[**InlineResponse20019**](InlineResponse20019.md)

### Authorization

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

### HTTP request headers

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

<a name="projectsProjectIdEnvironmentsEnvironmentIdChannelsPost"></a>
# **projectsProjectIdEnvironmentsEnvironmentIdChannelsPost**
> Channel projectsProjectIdEnvironmentsEnvironmentIdChannelsPost(projectId, environmentId, body)

create an EnvironmentChannel

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.DeploymentApi();

var projectId = "projectId_example"; // String | ID of deployment to return

var environmentId = "environmentId_example"; // String | ID of environment to return

var body = new Zaun.Channel(); // Channel | EnvironmentChannel model


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| ID of deployment to return | 
 **environmentId** | **String**| ID of environment to return | 
 **body** | [**Channel**](Channel.md)| EnvironmentChannel model | 

### Return type

[**Channel**](Channel.md)

### Authorization

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

### HTTP request headers

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

<a name="projectsProjectIdEnvironmentsEnvironmentIdDelete"></a>
# **projectsProjectIdEnvironmentsEnvironmentIdDelete**
> 'Boolean' projectsProjectIdEnvironmentsEnvironmentIdDelete(environmentId, projectId)

Delete an environment

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.DeploymentApi();

var environmentId = "environmentId_example"; // String | ID of environment to return

var projectId = "projectId_example"; // String | ID of deployment to return


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **environmentId** | **String**| ID of environment to return | 
 **projectId** | **String**| ID of deployment to return | 

### Return type

**'Boolean'**

### Authorization

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

### HTTP request headers

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

<a name="projectsProjectIdEnvironmentsEnvironmentIdGet"></a>
# **projectsProjectIdEnvironmentsEnvironmentIdGet**
> Environment projectsProjectIdEnvironmentsEnvironmentIdGet(environmentId, projectId)

Get single environment by ID

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.DeploymentApi();

var environmentId = "environmentId_example"; // String | ID of environment to return

var projectId = "projectId_example"; // String | ID of deployment to return


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **environmentId** | **String**| ID of environment to return | 
 **projectId** | **String**| ID of deployment to return | 

### Return type

[**Environment**](Environment.md)

### Authorization

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

### HTTP request headers

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

<a name="projectsProjectIdEnvironmentsEnvironmentIdPut"></a>
# **projectsProjectIdEnvironmentsEnvironmentIdPut**
> Environment projectsProjectIdEnvironmentsEnvironmentIdPut(environmentId, projectId, body)

Update the environment

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.DeploymentApi();

var environmentId = "environmentId_example"; // String | ID of environment to return

var projectId = "projectId_example"; // String | ID of deployment to return

var body = new Zaun.Environment(); // Environment | Deployment model


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **environmentId** | **String**| ID of environment to return | 
 **projectId** | **String**| ID of deployment to return | 
 **body** | [**Environment**](Environment.md)| Deployment model | 

### Return type

[**Environment**](Environment.md)

### Authorization

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

### HTTP request headers

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

<a name="projectsProjectIdEnvironmentsGet"></a>
# **projectsProjectIdEnvironmentsGet**
> InlineResponse20018 projectsProjectIdEnvironmentsGet(projectId, opts)

Get all environments

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.DeploymentApi();

var projectId = "projectId_example"; // String | ID of project to return

var opts = { 
  'limit': 56, // Number | Limit returned deployments in a page
  'page': 56 // Number | A number representing page
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| ID of project to return | 
 **limit** | **Number**| Limit returned deployments in a page | [optional] 
 **page** | **Number**| A number representing page | [optional] 

### Return type

[**InlineResponse20018**](InlineResponse20018.md)

### Authorization

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

### HTTP request headers

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

<a name="projectsProjectIdEnvironmentsPost"></a>
# **projectsProjectIdEnvironmentsPost**
> Environment projectsProjectIdEnvironmentsPost(projectId, body)

create an environment

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.DeploymentApi();

var projectId = "projectId_example"; // String | ID of project to return

var body = new Zaun.Environment(); // Environment | Environment model


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| ID of project to return | 
 **body** | [**Environment**](Environment.md)| Environment model | 

### Return type

[**Environment**](Environment.md)

### Authorization

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

### HTTP request headers

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

