Create environment domain

http
POST /projects/{project_reference}/environments/{environment_id}/domains

Add a custom domain. Requires project.domains.write.

Parameters

NameInRequiredDescription
project_referencepathYes
environment_idpathYesEnvironment ID

Request body

FieldTypeRequiredDescription
domainstringYesCustom domain name to add to the environment

Responses

StatusDescription
201Domain added successfully
400Invalid input - Domain format is invalid
401Unauthorized
403Forbidden - User does not have permission to add domains or custom_domains feature not enabled
404Environment not found
429Resource limit exceeded - Custom domain quota reached
500Server error