Upload a file content

async AsyncCogniteClient.files.upload_content(
path: Path | str,
external_id: str | None = None,
instance_id: NodeId | None = None,
) FileMetadata

Upload a file content.

Parameters:
  • path (Path | str) – Path to the file you wish to upload.

  • external_id (str | None) – The external ID provided by the client. Must be unique within the project.

  • instance_id (NodeId | None) – Instance ID of the file.

Returns:

No description.

Return type:

FileMetadata