Projects

Add a new environment domain

post/projects/{project_id}/environments/{env_id}/domains

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/projects/{project_id}/environments/{env_id}/domains
  • Auth: none declared

Path parameters

project_idinteger required

Project ID or slug

env_idinteger required

Environment ID or slug

Request body

domainstring required
is_primaryboolean required

Response

Domain added successfully

created_atinteger required
domainstring required
environment_idinteger required
idinteger required
urlstring required

Full URL for this domain (e.g., https://buildtolearndev-production.example.com)

Example response

{
  "url": "https://buildtolearndev-production.example.com"
}

Changes

No recorded changes to this operation across all 50 revisions of this API.