Create a build
Create a build and receive signed upload targets for its screenshots and Playwright traces. The response lists, for every file Snapvisor doesn't already have, a secure `postUrl` with `fields` (or a legacy `putUrl`) to upload it to. Supports single and parallel builds.
Create a build and receive signed upload targets for its screenshots and Playwright traces. The response lists, for every file Snapvisor doesn't already have, a secure postUrl with fields (or a legacy putUrl) to upload it to. Supports single and parallel builds.
Authorization
projectToken Authenticate as a project with a project token.
Send it as a bearer token in the Authorization header:
Authorization: Bearer <project-token>You can find your project token in your Snapvisor project settings. Project tokens are used by CI and the SDK to create builds and deployments.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/builds" \ -H "Content-Type: application/json" \ -d '{ "commit": "string", "branch": "string", "screenshotKeys": [ "string" ] }'{ "build": { "id": "string", "number": 1, "head": { "sha": "string", "branch": "string" }, "base": { "sha": "string", "branch": "string" }, "status": "accepted", "conclusion": "no-changes", "stats": { "added": 0, "removed": 0, "unchanged": 0, "changed": 0, "ignored": 0, "failure": 0, "retryFailure": 0, "total": 0 }, "metadata": { "testReport": { "status": "passed", "stats": { "startTime": "string", "duration": 0 } } }, "url": "http://example.com", "notification": { "description": "string", "context": "string", "github": { "state": "pending" }, "gitlab": { "state": "pending" }, "origin": { "status": "queued", "conclusion": "success" }, "url": "http://example.com" } }, "screenshots": [ { "key": "string", "putUrl": "http://example.com" } ], "pwTraces": [ { "key": "string", "putUrl": "http://example.com" } ]}Deactivate an automation rule POST
Stop a rule from firing. Rules are never deleted — a deactivated one keeps its run history, which is what tells you why something fired. Requires administrator access to the project. Use it when a rule should stop firing but its history should be kept.
Upload a file to a proxied upload target POST
Receives one file for an upload target returned by `createBuild` (`postUrl` + `fields`) or `createMedia` (`upload.url` + `upload.fields`) when the object store does not implement S3 presigned POST (e.g. Backblaze B2); on other stores the URL points at the store itself and this route is not used. Behaves like an S3 POST-object endpoint: send the `fields` as form fields, then the file. No bearer token: the signed `policy` field is the authorization.