Chats
Upload a file to a chat's workspace
Changed onStreams the request body into the chat workspace's upload directory. The request Content-Type header is recorded as the file's media type. There is no server-imposed size cap; client cancellation aborts the stream and the agent leaves no partial target file behind.
post/api/v2/chats/{chat}/workspace-files
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/v2/chats/{chat}/workspace-files
- AuthAPI key in header Coder-Session-Token
Path parameters
chatstring uuid required
Chat ID
Headers
Content-Dispositionstring required
Filename of the file (attachment; filename=...)
Request body */*
string required
Response
Created
Changes
- info
endpoint added
- info