POST
/v1/tools/save_companyfreeSave 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
| Field | Type | Default | What it is |
|---|---|---|---|
company | string | None | Its id, co_…, to change it |
name | string | None | |
website | string | None | Its address or domain; empty for none |
notes | string | None |
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.