Method: PureCloud::RecordingApi#put_mediaretentionpolicies_policy_id_with_http_info
- Defined in:
- lib/purecloud/api/recording_api.rb
#put_mediaretentionpolicies_policy_id_with_http_info(policy_id, body, opts = {}) ⇒ Array<(Policy, Fixnum, Hash)>
Update a media retention policy
1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 |
# File 'lib/purecloud/api/recording_api.rb', line 1922 def put_mediaretentionpolicies_policy_id_with_http_info(policy_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: RecordingApi#put_mediaretentionpolicies_policy_id ..." end # verify the required parameter 'policy_id' is set fail "Missing the required parameter 'policy_id' when calling put_mediaretentionpolicies_policy_id" if policy_id.nil? # verify the required parameter 'body' is set fail "Missing the required parameter 'body' when calling put_mediaretentionpolicies_policy_id" if body.nil? # resource path local_var_path = "/api/v2/recording/mediaretentionpolicies/{policyId}".sub('{format}','json').sub('{' + 'policyId' + '}', policy_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Policy') if @api_client.config.debugging @api_client.config.logger.debug "API called: RecordingApi#put_mediaretentionpolicies_policy_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |