Skip to main content

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: name is empty or > 255 chars; a field key does not match the key pattern (ErrFormFieldKeyInvalid); two fields share the same key (ErrFormFieldKeyDuplicate); a field type is not in the supported set (ErrInvalidFieldType); a write-back target references an unknown custom field (ErrFormWriteBackInvalid).

Request

Responses

A successful response.