Skip to main content
POST
/
streaming
/
directories
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
directory_base = client.streaming.directories.create(
    name="New series. Season 1",
)
print(directory_base.id)
{
  "id": 123,
  "name": "<string>",
  "parent_id": 123,
  "items_count": 123,
  "created_at": "<string>",
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

Body

application/json
name
string
required
parent_id
integer

Response

id
integer
name
string
parent_id
integer
items_count
integer
created_at
string
updated_at
string