v14

latestOpenAPI 3.0.32026-08-04377889.4 MB
projects

Move a project domain

Move one project's domain to another project. Also allows the move of all redirects pointed to that domain in the same project.

post/v1/projects/{idOrName}/domains/{domain}/move

Path parameters

idOrNamestring required

The unique project identifier or the project name

The unique project identifier or the project name

domainstring required

The project domain name

Example:www.example.com

The project domain name

Query parameters

teamIdstring
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l

The Team identifier to perform the request on behalf of.

slugstring
Example:my-team-url-slug

The Team slug to perform the request on behalf of.

Request body

projectIdstring required

The unique target project identifier

gitBranchstring nullable

Git branch to link the project domain

redirectstring nullable

Target destination domain for redirect

redirectStatusCodenull | 301 | 302 | 307 | 308 nullable

Status code for domain redirect

Example request

{
  "projectId": "prj_XLKmu1DyR1eY7zq8UgeRKbA7yVLA",
  "redirect": "foobar.com",
  "redirectStatusCode": 307
}

Response

The domain was updated successfuly

namestring required
apexNamestring required
projectIdstring required
redirectstring nullable
redirectStatusCode301 | 302 | 307 | 308 | null nullable
gitBranchstring nullable
customEnvironmentIdstring nullable
updatedAtnumber
createdAtnumber
verifiedfalse | true required

true if the domain is verified for use with the project. If false it will not be used as an alias on this project until the challenge in verification is completed.