--- title: "Rename a project" canonical: "https://admiral.io/docs/api/projects/ProjectAPI_RenameProject" --- # Rename a project `POST https://api.admiral.io/v1/projects/{project}/rename` A Terraform workspace on Admiral's hosted state is named `__`, so a `cloud` block that names the old id stops resolving too. Name the workspace `_`, such as `env-01je3n6r1k8w_web`, to keep it working across renames. - ALREADY_EXISTS when another project has the new id. - ABORTED when `etag` is set and the project changed since it was read. Scope: `project:write` ### Path parameters - `project` (string, required): The project id. ### Request body - `project_id` (string, required): The new id, under the same rules as CreateProject's `project_id`. project_id.not_uid // a project id may not have the shape of a uid Pattern `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. Length 1 to 63. - `etag` (string): When set, the rename is refused unless it matches the project's current etag. ### Response 200 Success - `project` (Project): The project under its new name. - `name` (string): (IDENTIFIER) The project's name, `projects/{project}`, such as `projects/payments-api`. Identifies the project on update. Pattern `^projects/[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - `uid` (string): `prj-` and twelve base36 characters. Never changes and is never reused, so it is what a reference to the project holds. Pattern `^prj-[0-9a-z]+$`. Read-only. - `display_name` (string): A label for people, such as "Payments API". Optional; clients show the id when it is unset. Length at most 128. - `description` (string): Optional longer-form description of the project's purpose (e.g., "Core inventory service tracking warehouse stock and fulfillment"). Length at most 1024. - `labels` (map of string to string): Arbitrary key-value labels for organizing and filtering projects (e.g., `{"team": "logistics", "tier": "critical"}`). - `etag` (string): Changes whenever the project does. Send it back on update, rename or delete to refuse the change if someone else changed the project first. Read-only. - `created_by` (ActorRef): The user or agent who created this project. Read-only. - `id` (string): The actor's typed id: a `usr-` user id or an `sa-` service account id. - `display_name` (string): Human-readable name (e.g., "John Smith", "deploy-bot"). - `email` (string): Email address (empty for non-human actors). - `created_at` (Timestamp): When the project was created. Read-only. - `updated_at` (Timestamp): When the project was last updated. Read-only.