Promote an unnamed environment
Give an UNNAMED (ad-hoc) environment a name, promoting it IN PLACE — the same environment, now a permanent entry in the project's list, with the same id every existing run still points at.
The ONLY promotion path. PATCH /environments/{environmentId} renames an already-named environment and is admin-gated; this is member-gated and refuses a row that already has a name (409). The platform keeps them apart on purpose: routing promotion through the rename would either open it to members or leave ad-hoc rows unnameable.
Promotion also drops the content fingerprint, because a named environment is mutable: keeping it would let a later identical composition deduplicate onto a row that has since been edited into something else.
Path parameters
ID of the hosted project that contains the server.
Project environment ID, as returned by the project's environment list.
Request body
Response
The promoted environment.