Both
type and name are required. The template object structure varies by field type - see Field Types Reference for complete details