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)
- AuthHTTP bearer
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
- breaking
the
created_atresponse's property type changed fromintegertostring, and format fromint64todate-timefor status - breaking
the
estimated_sleep_atresponse's property type changed fromintegernulltostringnull, and format fromint64todate-timefor status - breaking
the
last_activity_atresponse's property type changed fromintegernulltostringnull, and format fromint64todate-timefor status
1 more change in this revision
- breaking