code: public static base_response add(nitro_service client, appfwfieldtype resource) throws Exception {
  		appfwfieldtype addresource = new appfwfieldtype();
  		addresource.name = resource.name;
  		addresource.regex = resource.regex;
  		addresource.priority = resource.priority;
  		addresource.comment = resource.comment;
  		return addresource.add_resource(client);
  	}
docs: Use this API to add appfwfieldtype.