chat
Post a file from the conversation Draft folder as a chat message
The file must be inside the Draft folder returned by the probe endpoint. This endpoint moves the file from Draft into the shared conversation subfolder (resolving any name conflicts), creates the chat message, and returns the actual final filename. The subfolder is shared with the room via a folder-level TYPE_ROOM share — no per-file share is created, keeping the Share Overview clean.
post/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/attachment
Path parameters
apiVersion'v1' required
tokenstring required
Headers
OCS-APIRequestboolean required
Required to be true for the API request to pass
Request body
Response
File moved from Draft and posted as chat message