Create an account
account.create(AccountCreateParams**kwargs) -> AccountCreateResponse
POST/v1/accounts
Creates a new account record. The $name field is required.
If a $website is provided, Lightfield automatically enriches the account in the background. The $howTheyMakeMoney and $accountStatus fields are read-only and cannot be set via the API. The $opportunity, $task, and $note relationships are also read-only — manage them via the $account relationship on the opportunity or task, or the $account/$opportunity note relationships instead.
Supports idempotency via the Idempotency-Key header.
Required scope: accounts:create
Rate limit category: Write
Parameters
Returns
Create an account
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
account_create_response = client.account.create(
fields={
"foo": "string"
},
)
print(account_create_response.id){
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
}
}Returns Examples
{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
}
}