CreateFormDefinition creates a new form in `draft` status. The schema is validated for field key shape and uniqueness; submissions cannot be accepted until the form is published.
POST/api/v1/crm/forms
Errors:
- UNAUTHENTICATED: missing auth context.
- INVALID_ARGUMENT:
nameis empty or > 255 chars; a field key does not match the key pattern (ErrFormFieldKeyInvalid); two fields share the same key (ErrFormFieldKeyDuplicate); a fieldtypeis not in the supported set (ErrInvalidFieldType); a write-back target references an unknown custom field (ErrFormWriteBackInvalid).
Request
Responses
- 200
- default
A successful response.
An unexpected error response.