Method: FileboundClient::Endpoints::RoutedItems#routed_item_update

Defined in:
lib/filebound_client/endpoints/routed_items.rb

#routed_item_update(routed_item) ⇒ nil

Edits a routed item. The routed_item.id must be not nil and > 0.

Examples:

Update an existing routed item

c = FileboundClient::Client.connect(host: url, username: 'username', password: 'password', use_ntlm: true,
                                    ntlm_user: 'ntlm_user', ntlm_password: 'ntlm_password',
                                    ntlm_domain: 'ntlm_domain')
c.routed_item_update(routed_item)

Parameters:

  • routed_item (Hash)

    the routed item to edit

Returns:

  • (nil)

Raises:



28
29
30
31
# File 'lib/filebound_client/endpoints/routed_items.rb', line 28

def routed_item_update(routed_item)
  raise Client::FileboundClientException.new('Id is required', 0) unless routed_item[:id].greater_than_zero?
  post("/routeditems/#{routed_item[:id]}", nil, routed_item)
end