Upload and create snapshot entry

Changed on
post/builds/upload/snapshot

Request

Headers

X-BUILD-IDstring uuid required

The buildId from the created build

X-RELATIVE-PATHstring required

The relative path of the file

X-SHAstring required

The SHA1 of the file

Request body multipart/form-data

snapshotstring binary
widthsstring

Single or Multiple (comma separated) width(s)

titlestring

Title of the snapshot

selectorsstring

CSS selectors used to take a snapshot of elements

hideSelectorsstring

CSS selectors used to hide elements

browsersstring

Browser(s) to render snapshots on (comma separated) firefox or chrome

Example request

{
  "widths": "1280, 720, 360",
  "browsers": "firefox, chrome"
}

Response

Uploaded object

uploadedboolean

Whether the snapshot was uploaded

Changes