Method: TsubaisoSDK#update_dept
- Defined in:
- lib/tsubaiso_sdk.rb
#update_dept(dept_id, options) ⇒ Object
1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 |
# File 'lib/tsubaiso_sdk.rb', line 1014 def update_dept(dept_id, ) params = {} candidate_keys = [ :sort_no, :code, :name, :memo, :name_abbr, :color, :start_date, :finish_date ] params = create_parameters(candidate_keys,) params['format'] = 'json' uri = URI.parse(@base_url + "/depts/update/#{dept_id}") api_request(uri, 'POST', params) end |