# ps.module.CallerIdApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionTeammateTeammateIdCalleridGet**](CallerIdApi.md#apiVersionTeammateTeammateIdCalleridGet) | **GET** /api/{version}/teammate/{teammateId}/callerid | [Teammate] List Caller Id
[**apiVersionTeammateTeammateIdCalleridIdPut**](CallerIdApi.md#apiVersionTeammateTeammateIdCalleridIdPut) | **PUT** /api/{version}/teammate/{teammateId}/callerid/{id} | [Teammate] Update Default Caller Id

<a name="apiVersionTeammateTeammateIdCalleridGet"></a>
# **apiVersionTeammateTeammateIdCalleridGet**
> apiVersionTeammateTeammateIdCalleridGet(teammateId, version)

[Teammate] List Caller Id

### 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.CallerIdApi();
let teammateId = "teammateId_example"; // String | Teammate Id
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teammateId** | **String**| Teammate Id | 
 **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="apiVersionTeammateTeammateIdCalleridIdPut"></a>
# **apiVersionTeammateTeammateIdCalleridIdPut**
> apiVersionTeammateTeammateIdCalleridIdPut(teammateId, id, version)

[Teammate] Update Default Caller Id

### 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.CallerIdApi();
let teammateId = "teammateId_example"; // String | Teammate Id
let id = "id_example"; // String | Phone Number Id
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teammateId** | **String**| Teammate Id | 
 **id** | **String**| Phone Number Id | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

