Upload file
Uploads a single file and creates a File resource, returning its stable id.
The request is multipart/form-data, not JSON. The file part must come last: the upload is streamed, so send purpose (and any other field) before it. A part that arrives after file, or a second file part, is rejected with 400.
Moveworks determines content_type by inspecting the bytes. A declared media type or a filename extension is not trusted, and the detected type is what the response reports.
A 201 is returned only after the bytes are stored and the file has passed its security checks, so a successful response always describes a file that is ready to reference.
Uploaded files are retained for 24 hours. After expire_time, both the file and its metadata are removed, and the id no longer resolves. Reference the id from a downstream API before then.
There is no GET, LIST, download, or DELETE operation in v1alpha1. A file is reached only by passing its id to an API that accepts one.
Request
- Base URL: https://api.moveworks.ai/rest/v1alpha1
- URL: https://api.moveworks.ai/rest/v1alpha1/files
- Auth: HTTP bearer
Response
File uploaded and File resource created
Changes
No recorded changes to this operation across all 1 revision of this API.