web_monitoring.db.Client.add_version¶
-
Client.
add_version
(*, page_id, capture_time, uri, hash, source_type, title, uuid=None, source_metadata=None)[source]¶ Submit one new Version.
See
add_versions()
for a more efficient bulk importer.- Parameters
- page_idstring
Page to which the Version is associated
- uristring
URI of content (such as an S3 bucket or InternetArchive URL)
- hashstring
SHA256 hash of Version content
- source_typestring
such as ‘versionista’ or ‘internetarchive’
- titlestring
content of
<title>
tag- uuidstring, optional
A new, unique Version ID (UUID4). If not specified, the server will generate one.
- source_metadatadict, optional
free-form metadata blob provided by source
- Returns
- responsedict