Skip to main content

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 it would create a cycle.
  • custom_fields: Optional JSONB. Validated against the registry.

Errors

  • INVALID_ARGUMENT: validation failure, unknown custom field key.
  • ALREADY_EXISTS: a name-duplicate policy can be enforced at tenant level (not in Feature A).

Request

Responses

A successful response.