Set a project's deployment domain
Set the domain the project's production deployments are served on. Requires administrator access to the project. Only domains under the Snapvisor deployments domain are accepted, and reserved slugs are refused. Use it when a project administrator asks to change that address.
Set the domain the project's production deployments are served on. Requires administrator access to the project. Only domains under the Snapvisor deployments domain are accepted, and reserved slugs are refused. Use it when a project administrator asks to change that address.
Authenticate as a user with a personal access token.
Send it as a bearer token in the Authorization header:
Authorization: Bearer <personal-access-token>Personal access tokens act on behalf of the user that created them and are required by endpoints that perform user actions, such as reviewing builds and posting comments.
In: header
Path Parameters
1 <= length1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/projects/string/string/domain" \ -H "Content-Type: application/json" \ -d '{ "domain": "string" }'{ "domain": "string"}Get a project's deployment domain GET
Retrieve the domain the project's production deployments are served on. Use it to find the address a project's production deployments are served on.
Create a media upload POST
Register a standalone image or video and receive a signed target to upload it to. Uploading takes three calls: 1. `POST /media` — declare the file and get back an `upload` target. 2. `POST` the file to `upload.url` as `multipart/form-data`, appending every entry of `upload.fields` **before** the `file` part. 3. `POST /media/{mediaId}/finalize` — confirm the bytes landed. When `upload` comes back `null`, Snapvisor already holds this exact file and steps 2 and 3 are unnecessary. Pass `prNumber` when the pull request already exists, or `branch` when it does not. A media uploaded against a branch is **staged**: it has its share URL immediately, and the moment a pull request opens for that branch Snapvisor attaches it and posts the comment — nothing has to come back and connect the two. Use it when you have a standalone screenshot or screen recording, outside a CI build, to attach to a branch or pull request.