Upload a file to a computer’s Desktop folder. The file will be synced to all running computers in the project.
cURL
curl --request POST \ --url https://www.orgo.ai/api/computers/{id}/files/upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file'
{ "file": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "filename": "<string>", "size_bytes": 123, "content_type": "<string>", "created_at": "2023-11-07T05:31:56Z", "desktop_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } }
curl -X POST https://www.orgo.ai/api/computers/{id}/files/upload \ -H "Authorization: Bearer sk_live_..." \ -F "file=@./document.pdf"
API key authentication. Format: sk_live_...
Computer ID
File to upload (max 10MB)
File uploaded successfully
Show child attributes