MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / update_record_v3

Function update_record_v3

keepercommander/api.py:1055–1067  ·  view source on GitHub ↗

Push a record update to the cloud. Takes a Record() object, converts to record JSON and pushes to the Keeper cloud API

(params, rec, **kwargs)

Source from the content-addressed store, hash-verified

1053
1054
1055def update_record_v3(params, rec, **kwargs): # type: (KeeperParams, Record, ...) -> Optional[bool]
1056 """ Push a record update to the cloud.
1057 Takes a Record() object, converts to record JSON
1058 and pushes to the Keeper cloud API
1059 """
1060 record_rq = get_pb2_record_update(params, rec, **kwargs)
1061 if not record_rq:
1062 return
1063 ru = record_rq['pb2_record_update']
1064 rq = get_records_update_request(params)
1065 rq.records.append(ru)
1066 record_rq_by_uid = {rec.record_uid: record_rq}
1067 return get_record_v3_response(params, rq, 'vault/records_update', record_rq_by_uid, silent=kwargs.get('silent'))
1068
1069
1070def update_records_v3(params, rec_list, **kwargs): # type: (KeeperParams, List[Record], ...) -> Optional[bool]

Callers 1

update_recordFunction · 0.70

Calls 4

get_pb2_record_updateFunction · 0.85
get_record_v3_responseFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected