POST
/v1/tools/save_projectfreeSave 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
| Field | Type | Default | What it is |
|---|---|---|---|
project | string | None | Its id, prj_…, to save over it |
app | one of | Required | Its Appaudio |
title | string | None | What it is called |
state | object | None | What its App holds, as open_project gives it |
version | integer | None | The version it was opened at |
ran | string | None | A job run in it, job_…, kept in its history |
charged | string | None | What 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.