The account object
Only
_id, _creationTime, orgId, name and createdAt are always present. An account can carry other fields that this reference does not list.
List accounts
pointed:read. Any credential.
Returns every account in the workspace. The route takes no parameters and does not page. To find one account, match on name or domain in the result.
Response: 200 OK
Create an account
pointed:read and pointed:write. A user-backed credential with the admin or member role.
Body parameters
A
null value is treated as not sent, for every field except fields.
Response: 201 Created. data is the new account object.
context, the response adds one of these:
Errors
Example
Get an account
pointed:read. Any credential.
Path parameters
Response:
200 OK. data is the account object.
Example
Update an account
pointed:read and pointed:write. A user-backed credential with the admin or member role.
Send only the fields you want to change.
Path parameters
Body parameters
A
null value is treated as not sent, for every field except fields and clear.
Response: 200 OK. data is the updated account object. If you sent context, the response adds contextRevision or contextError, as in Create an account.
Example
Get account context
pointed:read. Any credential.
Account context is background text about the account that the interviewer can use. Write it with context in Update an account.
Path parameters
Response:
200 OK
Errors
Example
Import accounts and contacts
pointed:read and pointed:write. A user-backed credential with the admin or member role. This applies to a dry run too.
Reads a spreadsheet of people and their companies. People are grouped under their company. A company that is already an account is reused. Each row succeeds or fails on its own.
Body parameters
One import can hold up to 1,000 accounts and 1,000 people.
The header row needs at least one company, domain or email column. Header names are matched without regard to case, spaces or punctuation.
A row is grouped by its company domain when it has one. The domain comes from the domain column or, failing that, from the email address, unless the address is at a personal email service. A row with no domain is grouped by company name. A row with neither is skipped.
The import does not read an
externalId column. Set externalId with the contacts routes.
Response to a dry run: 200 OK
Response to an import:
200 OK
The status is 200 even when some rows fail. Read
summary to see what happened.
Errors
Example