lib/client_success/open_api/clients.rb
def update_client(client)
        raise ArgumentError, 'Cannot update without id' if client.id.nil?
        resp = put "#{CLIENT_API_PATH}/#{client.id}", params: client.as_json
        process_response(resp)
        true
      rescue Errors::UnprocessableEntity
        false
      end
# PUT /v1/clients/:client_id
#
# Updates the details for a client. Appears that
# all attributes for a client must be provided.
# See:
# http://docs.clientsuccessapi.apiary.io/#reference/clients/client/update-a-client-detail
#
# @param [Resources::Client]
#   Client must have 'id' attribute.
# @return [Boolean]
#
PUT /v1/clients/:client_id
Updates the details for a client. Appears that
all attributes for a client must be provided.
PUT / v1 / clients / : client_id Updates the details for a client . Appears that all attributes for a client must be provided .
def update_client(client)
        raise ArgumentError, 'Cannot update without id' if client.id.nil?
        resp = put "#{CLIENT_API_PATH}/#{client.id}", params: client.as_json
        process_response(resp)
        true
      rescue Errors::UnprocessableEntity
        false
      end
def update_client ( client ) raise ArgumentError , 'Cannot update without id' if client . id . nil? resp = put "#{CLIENT_API_PATH}/#{client.id}" , params : client . as_json process_response ( resp ) true rescue Errors :: UnprocessableEntity false end
PUT /v1/clients/:client_id
Updates the details for a client.
PUT / v1 / clients / : client_id Updates the details for a client .
None
Boolean
client
Client must have 'id' attribute.
Client must have ' id ' attribute .