Scrub API
POST/v1/tools/save_projectfree

Save a project

Saves a project, free, as its App holds it: give app and state (its file as src, its timeline, the steps after it, as open_project gives them) and a title; a new one is given its id (prj_…). Give project and the version it was opened at to save over it; a version older than the latest is refused and says when the newer one was saved. Give ran, a job_… run in it, to keep that run in its history (with charged, as shown).

Fields

FieldTypeDefaultWhat it is
projectstringNoneIts id, prj_…, to save over it
appone ofRequiredIts App
audio
titlestringNoneWhat it is called
stateobjectNoneWhat its App holds, as open_project gives it
versionintegerNoneThe version it was opened at
ranstringNoneA job run in it, job_…, kept in its history
chargedstringNoneWhat that run charged, as shown

Call it

Request

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

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.