lib/purecloud/api/routing_api.rb in purecloud-0.38.1 vs lib/purecloud/api/routing_api.rb in purecloud-0.39.1

- old
+ new

@@ -2320,37 +2320,42 @@ @api_client.config.logger.debug "API called: RoutingApi#put_queues_queue_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Update Routing Skill + # Update routing skill proficiency or state. # - # @param skill_id Skill ID + # @param user_id User ID + # @param skill_id # @param [Hash] opts the optional parameters - # @option opts [RoutingSkill] :body Skill - # @return [RoutingSkill] - def put_skills_skill_id(skill_id, opts = {}) - data, status_code, headers = put_skills_skill_id_with_http_info(skill_id, opts) + # @option opts [UserRoutingSkill] :body Skill + # @return [UserRoutingSkill] + def put_user_id_routingskills_skill_id(user_id, skill_id, opts = {}) + data, status_code, headers = put_user_id_routingskills_skill_id_with_http_info(user_id, skill_id, opts) return data end - # Update Routing Skill + # Update routing skill proficiency or state. # - # @param skill_id Skill ID + # @param user_id User ID + # @param skill_id # @param [Hash] opts the optional parameters - # @option opts [RoutingSkill] :body Skill - # @return [Array<(RoutingSkill, Fixnum, Hash)>] RoutingSkill data, response status code and response headers - def put_skills_skill_id_with_http_info(skill_id, opts = {}) + # @option opts [UserRoutingSkill] :body Skill + # @return [Array<(UserRoutingSkill, Fixnum, Hash)>] UserRoutingSkill data, response status code and response headers + def put_user_id_routingskills_skill_id_with_http_info(user_id, skill_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#put_skills_skill_id ..." + @api_client.config.logger.debug "Calling API: RoutingApi#put_user_id_routingskills_skill_id ..." end + # verify the required parameter 'user_id' is set + fail "Missing the required parameter 'user_id' when calling put_user_id_routingskills_skill_id" if user_id.nil? + # verify the required parameter 'skill_id' is set - fail "Missing the required parameter 'skill_id' when calling put_skills_skill_id" if skill_id.nil? + fail "Missing the required parameter 'skill_id' when calling put_user_id_routingskills_skill_id" if skill_id.nil? # resource path - local_var_path = "/api/v2/routing/skills/{skillId}".sub('{format}','json').sub('{' + 'skillId' + '}', skill_id.to_s) + local_var_path = "/api/v2/users/{userId}/routingskills/{skillId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s).sub('{' + 'skillId' + '}', skill_id.to_s) # query parameters query_params = {} # header parameters @@ -2375,12 +2380,12 @@ :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'RoutingSkill') + :return_type => 'UserRoutingSkill') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#put_skills_skill_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#put_user_id_routingskills_skill_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update the utilization settings.