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_id
str Page to which the Version is associated
- body_url
str URI of content (such as an S3 bucket or InternetArchive URL)
- body_hash
str SHA256 hash of Version content
- source_type
str such as ‘versionista’ or ‘internetarchive’
- title
str content of
<title>tag- uuid
str, optional A new, unique Version ID (UUID4). If not specified, the server will generate one.
- source_metadata
dict, optional free-form metadata blob provided by source
- page_id
- Returns:
- response
dict
- response