Skip to main content
POST
Replace file
Uploads a new version of a ready file in one multipart/form-data request. The new file is a file of its own, with replaces_id naming the old one. Assistants keep searching the old file until the new one is ready; then the two swap at once and the old file is deleted. If the new one fails, the old one stays. The new file may have another name and type. It counts as the same file toward your plan’s files per knowledge base.

Path parameters

string
required
UUID of the ready file to replace.

Body

file
required
The new version: exactly one file, up to 25 MB.

Request

Response

201 Created with the new file object, processing, its replaces_id the old file’s id. Read it until it is ready: the old file is then gone.

Errors