Projects
Rename the auto-managed subdomain for an environment.
Changed onReplaces the environment's previous subdomain entirely — the old hostname stops resolving once the proxy reloads its route table. Custom domains attached to the environment are unaffected.
patch/projects/{project_id}/environments/{env_id}/subdomain
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}/subdomain
- Auth: none declared
Path parameters
project_idinteger required
Project ID or slug
env_idinteger required
Environment ID or slug
Request body
Example request
{
"subdomain": "myapp"
}Response
Subdomain updated successfully
Changes
- info
added the optional property
/////to the response with the status
- info
- info
added the optional property
/////to the response with the status
- info