Skip to main content

pageCameraGetUploadPolicy

Returns upload POST targets valid for 10 minutes for user-captured page screenshots and element data. An editable snapshotId takes precedence and returns elements; otherwise supply an HTTP(S) sourceUrl and lowercase device to obtain fingerprints. Use pageCameraSetScreenshotStatus after uploading an existing capture. Requires snapshot edit access.

pageCameraGetUploadPolicy(
snapshotId: Int
sourceUrl: String
device: String
): GetUploadPolicyMeta!

Arguments​

pageCameraGetUploadPolicy.snapshotId ● Int scalar​

Editable snapshot ID from pageCameraSnapshots or snapshotsList; when present, takes precedence over sourceUrl and device.

pageCameraGetUploadPolicy.sourceUrl ● String scalar​

Absolute HTTP or HTTPS page URL; required with device when snapshotId is omitted.

pageCameraGetUploadPolicy.device ● String scalar​

Lowercase desktop, phone or tablet; required with sourceUrl when snapshotId is omitted.

Type​

GetUploadPolicyMeta object​

Upload targets returned by pageCameraGetUploadPolicy; existing snapshots use elements, while new captures use fingerprints.