Scrub API
POST/v1/tools/save_companyfree

Save a company

Saves a company in this workspace's CRM, free. A new company needs a name; give company (co_…) to change one, and only the fields given change. website is its address or domain (skye-ferries.com); a website another company here has is refused, naming it.

Fields

FieldTypeDefaultWhat it is
companystringNoneIts id, co_…, to change it
namestringNone
websitestringNoneIts address or domain; empty for none
notesstringNone

Call it

Request

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

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.