files

Upload a file

Uploads a file that can later be attached to a post.

This request can either be a multipart/form-data request with a channel_id, files and optional client_ids defined in the FormData, or it can be a request with the channel_id and filename defined as query parameters with the contents of a single file in the body of the request.

post/api/v4/files

Query parameters

channel_idstring

The ID of the channel that this file will be uploaded to

filenamestring

The name of the file to be uploaded

Response

Corresponding lists of the provided client_ids and the metadata that has been stored in the database for each one

client_idsstring[]

A list of the client_ids that were provided in the request

Changes

No recorded changes to this endpoint across all 1 revision of this API.