Projects
Rename a project
A Terraform workspace on Admiral's hosted state is named
<project>_<environment>_<component>, so a cloud block that names the
old name stops resolving too. Name the workspace <environment id>_<component>,
such as env-01je3n6r1k8w_web, to keep it working across renames.
- ALREADY_EXISTS when another project has the new name.
- ABORTED when
etagis set and the project changed since it was read.
Scope: project:write
Authorization
bearerAuth An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...
In: header
Path Parameters
The project id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
RenameProjectRequest gives a project a new name.
Response Body
application/json
curl -X POST "https://example.com/v1/projects/string/rename" \ -H "Content-Type: application/json" \ -d '{ "new_name": "string" }'{ "project": { "id": "string", "name": "string", "display_name": "string", "resource_name": "string", "description": "string", "labels": { "property1": "string", "property2": "string" }, "etag": "string", "created_by": { "id": "string", "display_name": "string", "email": "string" }, "created_at": "2023-01-15T01:30:15.01Z", "updated_at": "2023-01-15T01:30:15.01Z" }}