Update an account
account.update(strid, AccountUpdateParams**kwargs) -> AccountUpdateResponse
POST/v1/accounts/{id}
Updates an existing account by ID. Only included fields and relationships are modified.
The $howTheyMakeMoney and $accountStatus fields are read-only and cannot be updated. 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:update
Rate limit category: Write
Parameters
id: str
Unique identifier of the account to update.
Returns
Update an account
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
account_update_response = client.account.update(
id="id",
)
print(account_update_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"
]
}
}
}