POST
/v1/tools/add_computer_filefreeAdd a file from a computer to Files
Sends a file the person gave Scrub on a computer (cf_…, from list_computers) to Files, from the Scrub app there, while it is open. Free. Answers its file_id when it has arrived; a large file may still be on its way, so check list_computers, where it shows in Files once there. A file sent before and unchanged is not sent again. Then give the file_id to any tool.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
file_id | string | Required | cf_…, from list_computers |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/add_computer_file \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"file_id":"…"}'Answer
{
"ok": true,
"result": {
"…": "…"
}
}What result holds is said above.
Every call can also answer an error: what comes back. Try it with your key from Account.