POST
/v1/tools/import_setupfreeImport a setup
Imports a setup file export_setup made, uploaded to this workspace, free: each Brand Kit and Flow in it saved here, its logos kept in Files, a kit or Flow of the same name saved over (so a setup sent back updates what was sent), each checked as saving it checks it. What cannot be imported is left out and said. Read it first with read_setup_file to say what will happen.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
file | string | Required | The setup file export_setup made, uploaded here: its file_id |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/import_setup \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"file":"w/…/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.