# ps.module.TeamApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionTeamGet**](TeamApi.md#apiVersionTeamGet) | **GET** /api/{version}/team | Returns a list of active team.
[**apiVersionTeamIdCallhandlingMissedcallPut**](TeamApi.md#apiVersionTeamIdCallhandlingMissedcallPut) | **PUT** /api/{version}/team/{id}/callhandling/missedcall | Update team miss call handling
[**apiVersionTeamIdCallhandlingOpenhourPut**](TeamApi.md#apiVersionTeamIdCallhandlingOpenhourPut) | **PUT** /api/{version}/team/{id}/callhandling/openhour | Update team open hour call handling
[**apiVersionTeamIdDelete**](TeamApi.md#apiVersionTeamIdDelete) | **DELETE** /api/{version}/team/{id} | Delete Team
[**apiVersionTeamIdGet**](TeamApi.md#apiVersionTeamIdGet) | **GET** /api/{version}/team/{id} | Retrieve team info
[**apiVersionTeamIdMemberPut**](TeamApi.md#apiVersionTeamIdMemberPut) | **PUT** /api/{version}/team/{id}/member | Update team member
[**apiVersionTeamIdPut**](TeamApi.md#apiVersionTeamIdPut) | **PUT** /api/{version}/team/{id} | Update existing Team
[**apiVersionTeamIdSettingPut**](TeamApi.md#apiVersionTeamIdSettingPut) | **PUT** /api/{version}/team/{id}/setting | Update team setting
[**apiVersionTeamIdSummaryGet**](TeamApi.md#apiVersionTeamIdSummaryGet) | **GET** /api/{version}/team/{id}/summary | Get Team Summary
[**apiVersionTeamPost**](TeamApi.md#apiVersionTeamPost) | **POST** /api/{version}/team | Create Team

<a name="apiVersionTeamGet"></a>
# **apiVersionTeamGet**
> apiVersionTeamGet(version, opts)

Returns a list of active team.

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TeamApi();
let version = "version_example"; // String | 
let opts = { 
  'tenantId': "tenantId_example", // String | 
  'sortBy': "sortBy_example", // String | 
  'direction': new ps.module.PhoneSpeakEntitiesEnumsListDirection(), // PhoneSpeakEntitiesEnumsListDirection | 
  'search': "search_example", // String | 
  'limit': 56, // Number | 
  'pageNum': 56 // Number | 
};
apiInstance.apiVersionTeamGet(version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **tenantId** | **String**|  | [optional] 
 **sortBy** | **String**|  | [optional] 
 **direction** | [**PhoneSpeakEntitiesEnumsListDirection**](.md)|  | [optional] 
 **search** | **String**|  | [optional] 
 **limit** | **Number**|  | [optional] 
 **pageNum** | **Number**|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionTeamIdCallhandlingMissedcallPut"></a>
# **apiVersionTeamIdCallhandlingMissedcallPut**
> apiVersionTeamIdCallhandlingMissedcallPut(idversion)

Update team miss call handling

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TeamApi();
let id = "id_example"; // String | The unique id of the team
let version = "version_example"; // String | 

apiInstance.apiVersionTeamIdCallhandlingMissedcallPut(idversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| The unique id of the team | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreTeamsUpdateTeamMissedCallHandlingQuery**](PhoneSpeakServiceCoreTeamsUpdateTeamMissedCallHandlingQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionTeamIdCallhandlingOpenhourPut"></a>
# **apiVersionTeamIdCallhandlingOpenhourPut**
> apiVersionTeamIdCallhandlingOpenhourPut(idversion)

Update team open hour call handling

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TeamApi();
let id = "id_example"; // String | The unique id of the team
let version = "version_example"; // String | 

apiInstance.apiVersionTeamIdCallhandlingOpenhourPut(idversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| The unique id of the team | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreTeamsUpdateTeamOpenHourCallHandlingQuery**](PhoneSpeakServiceCoreTeamsUpdateTeamOpenHourCallHandlingQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionTeamIdDelete"></a>
# **apiVersionTeamIdDelete**
> apiVersionTeamIdDelete(id, version)

Delete Team

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TeamApi();
let id = "id_example"; // String | The unique id of the team
let version = "version_example"; // String | 

apiInstance.apiVersionTeamIdDelete(id, version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| The unique id of the team | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionTeamIdGet"></a>
# **apiVersionTeamIdGet**
> apiVersionTeamIdGet(id, version)

Retrieve team info

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TeamApi();
let id = "id_example"; // String | the unique id of team object
let version = "version_example"; // String | 

apiInstance.apiVersionTeamIdGet(id, version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| the unique id of team object | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionTeamIdMemberPut"></a>
# **apiVersionTeamIdMemberPut**
> apiVersionTeamIdMemberPut(idversion)

Update team member

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TeamApi();
let id = "id_example"; // String | The unique id of the team
let version = "version_example"; // String | 

apiInstance.apiVersionTeamIdMemberPut(idversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| The unique id of the team | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreTeamsUpdateTeamMemberQuery**](PhoneSpeakServiceCoreTeamsUpdateTeamMemberQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionTeamIdPut"></a>
# **apiVersionTeamIdPut**
> apiVersionTeamIdPut(idversion)

Update existing Team

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TeamApi();
let id = "id_example"; // String | The unique id of the team
let version = "version_example"; // String | 

apiInstance.apiVersionTeamIdPut(idversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| The unique id of the team | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreTeamsUpdateTeamQuery**](PhoneSpeakServiceCoreTeamsUpdateTeamQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionTeamIdSettingPut"></a>
# **apiVersionTeamIdSettingPut**
> apiVersionTeamIdSettingPut(idversion)

Update team setting

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TeamApi();
let id = "id_example"; // String | The unique id of the team
let version = "version_example"; // String | 

apiInstance.apiVersionTeamIdSettingPut(idversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| The unique id of the team | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreTeamsUpdateTeamSettingQuery**](PhoneSpeakServiceCoreTeamsUpdateTeamSettingQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionTeamIdSummaryGet"></a>
# **apiVersionTeamIdSummaryGet**
> apiVersionTeamIdSummaryGet(id, version, opts)

Get Team Summary

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TeamApi();
let id = "id_example"; // String | The unique id of the team
let version = "version_example"; // String | 
let opts = { 
  'id2': "id_example", // String | 
  'startDate': new Date("2013-10-20T19:20:30+01:00"), // Date | 
  'endDate': new Date("2013-10-20T19:20:30+01:00") // Date | 
};
apiInstance.apiVersionTeamIdSummaryGet(id, version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| The unique id of the team | 
 **version** | **String**|  | 
 **id2** | **String**|  | [optional] 
 **startDate** | **Date**|  | [optional] 
 **endDate** | **Date**|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionTeamPost"></a>
# **apiVersionTeamPost**
> apiVersionTeamPost(version)

Create Team

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TeamApi();
let version = "version_example"; // String | 

apiInstance.apiVersionTeamPost(version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreTeamsCreateTeamQuery**](PhoneSpeakServiceCoreTeamsCreateTeamQuery.md)| Create team | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

