Scrub API
POST/v1/tools/make_folderfree

Make a folder

Makes a folder in this workspace's Files, free, by its name, and gives its id (fld_…): at the top of Files, or inside another folder by its id. Put files or folders in it with move_files. Folders go 10 deep at most, and a workspace keeps at most 200.

Fields

FieldTypeDefaultWhat it is
namestringRequiredIts name, as the person calls it
folderstringNoneThe folder to make it in, by its id (fld_…); left out, the top of Files

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/make_folder \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"…"}'

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.