v1

latestOpenAPI 3.1.02026-07-17104173304.0 KB
public

Link User File To Project

Link an existing user file to a specific project for the current user.

Creates the association in the Project__UserFile join table if it does not exist. Returns the linked user file snapshot.

post/user/projects/{project_id}/files/{file_id}

Path parameters

project_idinteger required
file_idstring uuid required

Response

Successful Response

idstring uuid required
temp_idstring nullable
namestring required
project_idinteger nullable
user_idstring uuid nullable required
file_idstring required
created_atstring date-time required
status'PROCESSING' | 'COMPLETED' | 'FAILED' | 'CANCELED' | 'DELETING' required
last_accessed_atstring date-time nullable required
file_typestring nullable required
chat_file_type'image' | 'document' | 'plain_text' | 'csv' required
token_countinteger nullable required
chunk_countinteger nullable required