PUT
/
cloud
/
v1
/
projects
/
{project_id}
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
project = client.cloud.projects.replace(
    project_id=0,
    name="New Project",
)
print(project.id)
{
  "client_id": 1,
  "created_at": "2019-12-31T23:59:59",
  "deleted_at": "2020-12-31T23:59:59",
  "description": "Project description",
  "id": 1,
  "is_default": true,
  "name": "default",
  "state": "ACTIVE",
  "task_id": "7244e161-664c-4afd-a34e-7003eac4d949"
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project ID

Body

application/json

Response

200 - application/json

Changed project

The response is of type object.