POST
/v1/tools/save_personfreeSave a person
Saves a person in this workspace's CRM, free. A new person needs a name or an email; give person (pe_…) to change one, and only the fields given change. An email someone here already has is refused, naming them. company is a company's id (co_…) or its exact name, or empty for none; a company that is not here is refused, never made. A new person with a work email and no company given joins the company with that website, and says so. type is customer, lead, partner, supplier, investor or team.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
person | string | None | Its id, pe_…, to change it |
name | string | None | |
email | string | None | |
phone | string | None | |
job_title | string | None | |
company | string | None | A company's id (co_…) or exact name; empty for none |
type | one of | None | customerleadpartnersupplierinvestorteam |
notes | string | None |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/save_person \
-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.