# ps.module.CsrUserApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionCsrGet**](CsrUserApi.md#apiVersionCsrGet) | **GET** /api/{version}/csr | Retrieve current login CSR User info
[**apiVersionCsrUserGet**](CsrUserApi.md#apiVersionCsrUserGet) | **GET** /api/{version}/csr/user | [Rerpresentative] Returns a list of active CSR User.
[**apiVersionCsrUserIdAccessPut**](CsrUserApi.md#apiVersionCsrUserIdAccessPut) | **PUT** /api/{version}/csr/user/{id}/access | [Rerpresentative] Update csr user site access
[**apiVersionCsrUserIdDelete**](CsrUserApi.md#apiVersionCsrUserIdDelete) | **DELETE** /api/{version}/csr/user/{id} | [Rerpresentative] Delete existing Csr User
[**apiVersionCsrUserIdGet**](CsrUserApi.md#apiVersionCsrUserIdGet) | **GET** /api/{version}/csr/user/{id} | [Rerpresentative] Retrieve existing CSR User account
[**apiVersionCsrUserIdProfileimagePut**](CsrUserApi.md#apiVersionCsrUserIdProfileimagePut) | **PUT** /api/{version}/csr/user/{id}/profileimage | [Rerpresentative] Upload existing CSR User Profile Image
[**apiVersionCsrUserIdPut**](CsrUserApi.md#apiVersionCsrUserIdPut) | **PUT** /api/{version}/csr/user/{id} | [Rerpresentative] Update existing Csr User
[**apiVersionCsrUserIdStatusStatusPut**](CsrUserApi.md#apiVersionCsrUserIdStatusStatusPut) | **PUT** /api/{version}/csr/user/{id}/status/{status} | [Rerpresentative] Update existing CSR User Status
[**apiVersionCsrUserPost**](CsrUserApi.md#apiVersionCsrUserPost) | **POST** /api/{version}/csr/user | [Rerpresentative] Create Csr User

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

Retrieve current login CSR User 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.CsrUserApi();
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **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="apiVersionCsrUserGet"></a>
# **apiVersionCsrUserGet**
> apiVersionCsrUserGet(version, opts)

[Rerpresentative] Returns a list of active CSR User.

### 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.CsrUserApi();
let version = "version_example"; // String | 
let opts = { 
  'role': new ps.module.PhoneSpeakEntitiesEnumsCsrUserRole(), // PhoneSpeakEntitiesEnumsCsrUserRole | 
  'sortBy': "sortBy_example", // String | 
  'direction': new ps.module.PhoneSpeakEntitiesEnumsListDirection(), // PhoneSpeakEntitiesEnumsListDirection | 
  'search': "search_example", // String | 
  'limit': 56, // Number | 
  'pageNum': 56 // Number | 
};
apiInstance.apiVersionCsrUserGet(version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **role** | [**PhoneSpeakEntitiesEnumsCsrUserRole**](.md)|  | [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="apiVersionCsrUserIdAccessPut"></a>
# **apiVersionCsrUserIdAccessPut**
> apiVersionCsrUserIdAccessPut(idversion)

[Rerpresentative] Update csr user site access

### 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.CsrUserApi();
let id = "id_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreCsrUsersUpdateCsrUserSiteAccessQuery**](PhoneSpeakServiceCoreCsrUsersUpdateCsrUserSiteAccessQuery.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="apiVersionCsrUserIdDelete"></a>
# **apiVersionCsrUserIdDelete**
> apiVersionCsrUserIdDelete(id, version)

[Rerpresentative] Delete existing Csr User

### 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.CsrUserApi();
let id = "id_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

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

[Rerpresentative] Retrieve existing CSR User account

### 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.CsrUserApi();
let id = "id_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **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="apiVersionCsrUserIdProfileimagePut"></a>
# **apiVersionCsrUserIdProfileimagePut**
> apiVersionCsrUserIdProfileimagePut(idversion)

[Rerpresentative] Upload existing CSR User Profile Image

### 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.CsrUserApi();
let id = "id_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreCsrUsersUpdateProfileImageCsrUserQuery**](PhoneSpeakServiceCoreCsrUsersUpdateProfileImageCsrUserQuery.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="apiVersionCsrUserIdPut"></a>
# **apiVersionCsrUserIdPut**
> apiVersionCsrUserIdPut(idversion)

[Rerpresentative] Update existing Csr User

### 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.CsrUserApi();
let id = "id_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreCsrUsersUpdateCsrUserQuery**](PhoneSpeakServiceCoreCsrUsersUpdateCsrUserQuery.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="apiVersionCsrUserIdStatusStatusPut"></a>
# **apiVersionCsrUserIdStatusStatusPut**
> apiVersionCsrUserIdStatusStatusPut(id, status, version)

[Rerpresentative] Update existing CSR User Status

### 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.CsrUserApi();
let id = "id_example"; // String | 
let status = new ps.module.PhoneSpeakEntitiesEnumsCsrUserStatus(); // PhoneSpeakEntitiesEnumsCsrUserStatus | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **status** | [**PhoneSpeakEntitiesEnumsCsrUserStatus**](.md)|  | 
 **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="apiVersionCsrUserPost"></a>
# **apiVersionCsrUserPost**
> apiVersionCsrUserPost(version)

[Rerpresentative] Create Csr User

### 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.CsrUserApi();
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreCsrUsersCreateCsrUserQuery**](PhoneSpeakServiceCoreCsrUsersCreateCsrUserQuery.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

