POST
/
cloud
/
v1
/
projects
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.create(
    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

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Body

application/json

Response

201 - application/json

Created

The response is of type object.