Snapvisor Docs
API ReferenceDeployments

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.

PUT
/projects/{owner}/{project}/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.

Authorization

AuthorizationBearer <token>

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

owner*string
Length1 <= length
project*string
Length1 <= length

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

application/json

curl -X PUT "https://example.com/projects/string/string/domain" \  -H "Content-Type: application/json" \  -d '{    "domain": "string"  }'
{  "domain": "string"}