 		organization_level_name:
 		organization_level_display_name:
 		organization_level_description:
-		parent_level_name:
+		parent_level_id:
 		is_root_level:
-		organization_name:
+		organization_id:
 		changing_user_login:
 		enter_or_update:
 	}

			ELSE
			
				UPDATE	programs_manager_schema.organization_level
				   SET	parent_level_name = (SELECT _in_data ->> 'parent_level_name')::text,
						organization_level_name = _organization_level_name,
						organization_level_display_name = (SELECT _in_data ->> 'organization_level_display_name')::text,
						organization_level_description = (SELECT _in_data ->> 'organization_level_description')::text,
						is_root_level = (SELECT _in_data ->> 'is_root_level')::BOOLEAN,
						parent_level_id = _parent_level_id,
						is_root_level = (SELECT _in_data ->> 'is_root_level')::BOOLEAN,
						organization_id = _organization_id,
						datetime_level_changed  = LOCALTIMESTAMP (0),
						changing_user_login = (SELECT _in_data ->> 'changing_user_login')::text
				WHERE	organization_level_id = _organization_level_id2
				;
				
				_message := 'The level named ' || _organization_level_name || ' has been updated.';
				
				_out_json :=  (SELECT json_build_object(
									'result_indicator', 'Succees',
									'message', _message,
									'organization_level_id', _organization_level_id2,
									'organization_level_name', (SELECT _in_data ->> 'organization_level_name')::text,
									'organization_level_display_name', (SELECT _in_data ->> 'organization_level_display_name')::text,
									'organization_level_description',  (SELECT _in_data ->> 'organization_level_description')::text,

		_out_json :=  (SELECT json_build_object(
							'result_indicator', 'Failure',
							'message', _message,
							'organization_level_id', (SELECT _in_data ->> 'organization_level_id')::text,
							'organization_level_name', (SELECT _in_data ->> 'organization_level_name')::text,
							'organization_level_display_name', (SELECT _in_data ->> 'organization_level_display_name')::text,
							'organization_level_description',  (SELECT _in_data ->> 'organization_level_description')::text,
							'parent_level_name', (SELECT _in_data ->> 'parent_level_name')::text,
							'is_root_level', (SELECT _in_data ->> 'is_root_level')::text,
							'organization_name', (SELECT _in_data ->> 'organization_name')::text,
							'changing_user_login', _calling_login,
				'			enter_or_update', (SELECT _in_data ->> 'enter_or_update')::text
							));			-- 	log user NOT authorized error
							
	ELSIF NOT _parent_level_exists THEN   -- parent level DOESN'T exist
