Domain Management
Add an environment domain
Add a single domain to an environment. If the environment is not production, the replacement_for field is required, which binds a new domain to an existing one from a production environment. If the ssl field is left blank without an object containing a PEM-encoded SSL certificate, a certificate will be provisioned for you via Let's Encrypt.
post/projects/{projectId}/environments/{environmentId}/domains
Request
- Base URLhttps://api.upsun.com
- AuthOAuth 2Authorization codehttps://auth.api.platform.sh/oauth2/authorizeToken URLhttps://auth.api.platform.sh/oauth2/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectIdstring required
environmentIdstring required
Request body
Response
Changes
No recorded changes to this operation across all 1 revision of this API.