--- title: UserRecordingsApi --- ## PureCloud::UserRecordingsApi All URIs are relative to *https://api.mypurecloud.com* Method | HTTP request | Description ------------- | ------------- | ------------- |[**delete_recording_id**](UserRecordingsApi.html#delete_recording_id) | **DELETE** /api/v2/userrecordings/{recordingId} | Delete a user recording.| |[**get_recording_id**](UserRecordingsApi.html#get_recording_id) | **GET** /api/v2/userrecordings/{recordingId} | Get a user recording.| |[**get_recording_id_media**](UserRecordingsApi.html#get_recording_id_media) | **GET** /api/v2/userrecordings/{recordingId}/media | Download a user recording.| |[**get_summary**](UserRecordingsApi.html#get_summary) | **GET** /api/v2/userrecordings/summary | Get user recording summary| |[**get_userrecordings**](UserRecordingsApi.html#get_userrecordings) | **GET** /api/v2/userrecordings | Get a list of user recordings.| |[**put_recording_id**](UserRecordingsApi.html#put_recording_id) | **PUT** /api/v2/userrecordings/{recordingId} | Update a user recording.| {: class="table table-striped"} ## - delete_recording_id(recording_id) Delete a user recording. ### Example ~~~ruby # load the gem require 'purecloud' # setup authorization @secret = ENV['PURECLOUD_SECRET'] @id = ENV['PURECLOUD_CLIENT_ID'] environment = "mypurecloud.com" @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment PureCloud.configure do |config| config.access_token = @authToken end api_instance = PureCloud::UserRecordingsApi.new recording_id = "recording_id_example" # String | User Recording ID begin #Delete a user recording. api_instance.delete_recording_id(recording_id) rescue PureCloud::ApiError => e puts "Exception when calling UserRecordingsApi->delete_recording_id: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **recording_id** | **String**| User Recording ID | {: class="table table-striped"} ### Return type nil (empty response body) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**UserRecording**](UserRecording.html) get_recording_id(recording_id, opts) Get a user recording. ### Example ~~~ruby # load the gem require 'purecloud' # setup authorization @secret = ENV['PURECLOUD_SECRET'] @id = ENV['PURECLOUD_CLIENT_ID'] environment = "mypurecloud.com" @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment PureCloud.configure do |config| config.access_token = @authToken end api_instance = PureCloud::UserRecordingsApi.new recording_id = "recording_id_example" # String | User Recording ID opts = { expand: "expand_example" # String | conversation } begin #Get a user recording. result = api_instance.get_recording_id(recording_id, opts) p result rescue PureCloud::ApiError => e puts "Exception when calling UserRecordingsApi->get_recording_id: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **recording_id** | **String**| User Recording ID | **expand** | **String**| conversation | [optional] {: class="table table-striped"} ### Return type [**UserRecording**](UserRecording.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**DownloadResponse**](DownloadResponse.html) get_recording_id_media(recording_id, opts) Download a user recording. ### Example ~~~ruby # load the gem require 'purecloud' # setup authorization @secret = ENV['PURECLOUD_SECRET'] @id = ENV['PURECLOUD_CLIENT_ID'] environment = "mypurecloud.com" @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment PureCloud.configure do |config| config.access_token = @authToken end api_instance = PureCloud::UserRecordingsApi.new recording_id = "recording_id_example" # String | User Recording ID opts = { format_id: "WEBM" # String | The desired media format. } begin #Download a user recording. result = api_instance.get_recording_id_media(recording_id, opts) p result rescue PureCloud::ApiError => e puts "Exception when calling UserRecordingsApi->get_recording_id_media: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **recording_id** | **String**| User Recording ID | **format_id** | **String**| The desired media format. | [optional] [default to WEBM] {: class="table table-striped"} ### Return type [**DownloadResponse**](DownloadResponse.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**FaxSummary**](FaxSummary.html) get_summary Get user recording summary ### Example ~~~ruby # load the gem require 'purecloud' # setup authorization @secret = ENV['PURECLOUD_SECRET'] @id = ENV['PURECLOUD_CLIENT_ID'] environment = "mypurecloud.com" @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment PureCloud.configure do |config| config.access_token = @authToken end api_instance = PureCloud::UserRecordingsApi.new begin #Get user recording summary result = api_instance.get_summary p result rescue PureCloud::ApiError => e puts "Exception when calling UserRecordingsApi->get_summary: #{e}" end ~~~ ### Parameters This endpoint does not need any parameter. {: class="table table-striped"} ### Return type [**FaxSummary**](FaxSummary.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**UserRecordingEntityListing**](UserRecordingEntityListing.html) get_userrecordings(opts) Get a list of user recordings. ### Example ~~~ruby # load the gem require 'purecloud' # setup authorization @secret = ENV['PURECLOUD_SECRET'] @id = ENV['PURECLOUD_CLIENT_ID'] environment = "mypurecloud.com" @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment PureCloud.configure do |config| config.access_token = @authToken end api_instance = PureCloud::UserRecordingsApi.new opts = { page_size: 25, # Integer | Page size page_number: 1, # Integer | Page number expand: "expand_example" # String | conversation } begin #Get a list of user recordings. result = api_instance.get_userrecordings(opts) p result rescue PureCloud::ApiError => e puts "Exception when calling UserRecordingsApi->get_userrecordings: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **page_size** | **Integer**| Page size | [optional] [default to 25] **page_number** | **Integer**| Page number | [optional] [default to 1] **expand** | **String**| conversation | [optional] {: class="table table-striped"} ### Return type [**UserRecordingEntityListing**](UserRecordingEntityListing.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**UserRecording**](UserRecording.html) put_recording_id(recording_id, body, opts) Update a user recording. ### Example ~~~ruby # load the gem require 'purecloud' # setup authorization @secret = ENV['PURECLOUD_SECRET'] @id = ENV['PURECLOUD_CLIENT_ID'] environment = "mypurecloud.com" @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment PureCloud.configure do |config| config.access_token = @authToken end api_instance = PureCloud::UserRecordingsApi.new recording_id = "recording_id_example" # String | User Recording ID body = PureCloud::UserRecording.new # UserRecording | UserRecording opts = { expand: "expand_example" # String | conversation } begin #Update a user recording. result = api_instance.put_recording_id(recording_id, body, opts) p result rescue PureCloud::ApiError => e puts "Exception when calling UserRecordingsApi->put_recording_id: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **recording_id** | **String**| User Recording ID | **body** | [**UserRecording**](UserRecording.html)| UserRecording | **expand** | **String**| conversation | [optional] {: class="table table-striped"} ### Return type [**UserRecording**](UserRecording.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json