web_monitoring.db.Client.add_version

Client.add_version(*, page_id, capture_time, body_url, body_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_idstr

Page to which the Version is associated

body_urlstr

URI of content (such as an S3 bucket or InternetArchive URL)

body_hashstr

SHA256 hash of Version content

source_typestr

such as ‘versionista’ or ‘internetarchive’

titlestr

content of <title> tag

uuidstr, 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