PATCH
/
streaming
/
directories
/
{directory_id}
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
directory_base = client.streaming.directories.update(
    directory_id=0,
)
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

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

Path Parameters

directory_id
integer
required

Directory ID

Body

application/json
name
string

Title of the directory. Omit this if you don't want to change.

parent_id
integer

ID of a parent directory. "null" if it's in the root. Omit this if you don't want to change.

Response

Successful

id
integer

ID of the directory

name
string

Title of the directory

parent_id
integer

ID of a parent directory. "null" if it's in the root.

items_count
integer

Number of objects in this directory. Counting files and folders. The quantity is calculated only at one level (not recursively in all subfolders).

created_at
string

Time of creation. Datetime in ISO 8601 format.

updated_at
string

Time of last update of the directory entity. Datetime in ISO 8601 format.