Workspaces

Replace a workspace file

New bytes for the file, at the same path, as multipart form data. The request goes through Drex, so it is limited to about 4.5 MB; upload a larger file to the same path with on_conflict: "new_version" instead. Free.

put/v1/workspaces/{id}/files/{file_id}

Request

Path parameters

idstring required

The workspace's workspace_id.

file_idstring required

The file's file_id.

Request body multipart/form-data

filestring binary required
metadatastring

JSON: labels (replaces them; {} clears) and graph_inclusion (auto, include or exclude).

Response

The file_replace job, already succeeded, with result.file and result.previous_version.

job_idstring uuid required
kindstring required

The document service's job kind, such as ingestion, reconciliation, kg_build, intelligent_search (automatic search), automatic_agent (QA), file_replace, file_delete or workspace_delete.

status'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' required
workspace_idstring
resultunknown

Changes

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