def update_account(account_id, key=None, value=None, items=None):
 if (items is None):
  if ((key is None) or (value is None)):
   return {'Error': 'At least one key/value pair is required'}
  items = {key: value}
 (status, result) = _query(action='accounts', command=account_id, data=json.dumps(items), header_dict={'Content-Type': 'application/json;charset=UTF-8'}, method='POST')
 return show_account(account_id)

def update_account ( account_id , key = None , value = None , items = None ) : if ( items is None ) : if ( ( key is None ) or ( value is None ) ) : return { 'Error' : 'At least one key/value pair is required' } items = { key : value } ( status , result ) = _query ( action = 'accounts' , command = account_id , data = json . dumps ( items ) , header_dict = { 'Content-Type' : 'application/json;charset=UTF-8' } , method = 'POST' ) return show_account ( account_id )
update one or more items for this account .