def create_fields(
    fields: Union[Dict[str, Any], List[str]],
    *,
    project: Optional[str] = None,
    context: Optional[str] = None,
    api_key: Optional[str] = None,
):

source code

Creates one or more fields in a project.

Arguments:

  • fields - Dictionary mapping field names to their types (or None if no explicit type).
  • project - Name of the project to create fields in.
  • context - The context to create fields in.
  • api_key - If specified, unify API key to be used. Defaults to the value in the