Beta

Create a new file in the project.

Args: file_create: File creation data project: Validated project from dependency db: Database session

Returns: The created file

post/api/v1/beta/files

Request

  • The document declares no server URL.
  • Auth: HTTP bearer

Query parameters

project_idstring uuid nullable
organization_idstring uuid nullable

Cookies

sessionstring nullable

Request body

namestring required

Name that will be used for created file. If possible, always include the file extension in the name.

external_file_idstring nullable

The ID of the file in the external system

file_sizeinteger nullable

Size of the file in bytes

last_modified_atstring date-time nullable

The last modified time of the file

resource_infoobject nullable

Resource information for the file

permission_infoobject nullable

Permission information for the file

data_source_idstring uuid nullable

The ID of the data source that the file belongs to

Response

Successful Response

idstring uuid required

Unique identifier

created_atstring date-time nullable

Creation datetime

updated_atstring date-time nullable

Update datetime

namestring required
external_file_idstring nullable

The ID of the file in the external system

file_sizeinteger nullable

Size of the file in bytes

file_typestring nullable

File type (e.g. pdf, docx, etc.)

project_idstring uuid required

The ID of the project that the file belongs to

last_modified_atstring date-time nullable

The last modified time of the file

resource_infoobject nullable

Resource information for the file

permission_infoobject nullable

Permission information for the file

data_source_idstring uuid nullable

The ID of the data source that the file belongs to

Changes