Scrub API
POST/v1/tools/read_setup_filefree

Read a setup file

Reads a setup file export_setup made, uploaded to this workspace, free, and says what import_setup would do before anything is added: each Brand Kit and Flow it adds, each it updates (one of the same name here is saved over), and each it leaves out, with why. Nothing is added.

Fields

FieldTypeDefaultWhat it is
filestringRequiredThe setup file export_setup made, uploaded here: its file_id

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/read_setup_file \
  -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.