Add a domain to a project
Changed onAdd a domain to the project by passing its domain name and by specifying the project by either passing the project id or name in the URL. If the domain is not yet verified to be used on this project, the request will return verified = false, and the domain will need to be verified according to the verification challenge via POST /projects/:idOrName/domains/:domain/verify. If the domain already exists on the project, the request will fail with a 400 status code.
Request
- Base URL: https://api.vercel.com
- URL: https://api.vercel.com/v10/projects/{idOrName}/domains
- Auth: HTTP bearer
Path parameters
The unique project identifier or the project name
Query parameters
The Team identifier to perform the request on behalf of.
The Team slug to perform the request on behalf of.
Request body
Example request
{
"name": "www.example.com",
"redirect": "foobar.com",
"redirectStatusCode": 307
}Response
The domain was successfully added to the project
Changes
- info
added the non-success response with the status
- info
- info
added the non-success response with the status
- info