CreateAccount creates a new Account.
POST/api/v1/crm/accounts
Parameters:
- name: Required, 1–255 chars.
- parent_account_id: Optional FK into crm_account. Rejected if creating a cycle.
- custom_fields: Optional JSONB. Keys are validated against the CustomFieldDefinition registry.
Errors:
- INVALID_ARGUMENT: name is empty; custom field key unknown or type mismatch; cycle in hierarchy.
Request
Responses
- 200
- default
A successful response.
An unexpected error response.